// 文档 https://github.com/hooke007/MPV_lazy/wiki/4_GLSL

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 3.200 * > OUTPUT.h LUMA.h 3.200 * > *
//!WIDTH LUMA.w 4 *
//!HEIGHT LUMA.h 4 *
//!COMPONENTS 1
//!BIND LUMA
//!SAVE LANCZOS3
//!DESC [AiUpscale_Medium_4x_Photo] lanczos3

#define FIX(c)		max(abs(c), 1e-5)
#define PI		3.141592653

vec3 weight3(float x)
{
    vec3 s = FIX(2.0 * PI * vec3(x - 1.5, x - 0.5, x + 0.5));
    return sin(s) * sin(s / 3.0) / (s * s);
}

float line_run(float ypos, vec3 xpos1, vec3 xpos2, vec3 linetaps1, vec3 linetaps2)
{
    return float(LUMA_tex(vec2(xpos1.r, ypos))) * linetaps1.r + float(LUMA_tex(vec2(xpos1.g, ypos))) * linetaps2.r + float(LUMA_tex(vec2(xpos1.b, ypos))) * linetaps1.g + float(LUMA_tex(vec2(xpos2.r, ypos))) * linetaps2.g + float(LUMA_tex(vec2(xpos2.g, ypos))) * linetaps1.b + float(LUMA_tex(vec2(xpos2.b, ypos))) * linetaps2.b;
}

vec4 hook()
{
    vec2 pos = LUMA_pos + LUMA_pt * 0.5;
    vec2 f = fract(pos / LUMA_pt);

    vec3 linetaps1 = weight3(0.5 - f.x * 0.5);
    vec3 linetaps2 = weight3(1.0 - f.x * 0.5);
    vec3 columntaps1 = weight3(0.5 - f.y * 0.5);
    vec3 columntaps2 = weight3(1.0 - f.y * 0.5);

    float suml = dot(linetaps1, vec3(1.0)) + dot(linetaps2, vec3(1.0));
    float sumc = dot(columntaps1, vec3(1.0)) + dot(columntaps2, vec3(1.0));
    linetaps1 /= suml;
    linetaps2 /= suml;
    columntaps1 /= sumc;
    columntaps2 /= sumc;

    vec2 xystart = (-2.5 - f) * LUMA_pt + pos;
    vec3 xpos1 = vec3(xystart.x, xystart.x + LUMA_pt.x, xystart.x + LUMA_pt.x * 2.0);
    vec3 xpos2 = vec3(xystart.x + LUMA_pt.x * 3.0, xystart.x + LUMA_pt.x * 4.0, xystart.x + LUMA_pt.x * 5.0);

    return vec4(line_run(xystart.y, xpos1, xpos2, linetaps1, linetaps2) * columntaps1.r + line_run(xystart.y + LUMA_pt.y, xpos1, xpos2, linetaps1, linetaps2) * columntaps2.r + line_run(xystart.y + LUMA_pt.y * 2.0 , xpos1, xpos2, linetaps1, linetaps2) * columntaps1.g + line_run(xystart.y + LUMA_pt.y * 3.0 , xpos1, xpos2, linetaps1, linetaps2) * columntaps2.g + line_run(xystart.y + LUMA_pt.y * 4.0 , xpos1, xpos2, linetaps1, linetaps2) * columntaps1.b + line_run(xystart.y + LUMA_pt.y * 5.0 , xpos1, xpos2, linetaps1, linetaps2) * columntaps2.b, 0, 0, 0);
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 3.200 * > OUTPUT.h LUMA.h 3.200 * > *
//!COMPONENTS 4
//!BIND LUMA
//!SAVE FEATURE1
//!DESC [AiUpscale_Medium_4x_Photo] feature map 1

vec4 hook()
{
vec4 res = vec4(-0.180972114205360,0.062582336366177,0.028754428029060,-0.006044787354767);
res += vec4(0.008081809617579,0.026571186259389,-0.495088934898376,0.031407259404659) * float(LUMA_texOff(vec2(-2,-2)));
res += vec4(0.078358776867390,0.151666656136513,-0.514461457729340,0.023560838773847) * float(LUMA_texOff(vec2(-2,-1)));
res += vec4(-0.062742948532104,-0.048146493732929,-0.553476393222809,0.013361521996558) * float(LUMA_texOff(vec2(-2,0)));
res += vec4(0.050448104739189,-0.033420015126467,-0.538571715354919,-0.012395224533975) * float(LUMA_texOff(vec2(-2,1)));
res += vec4(0.009530491195619,0.089989036321640,-0.347077518701553,-0.011226196773350) * float(LUMA_texOff(vec2(-2,2)));
res += vec4(0.061971951276064,-0.089970916509628,-0.038405362516642,-0.132582888007164) * float(LUMA_texOff(vec2(-1,-2)));
res += vec4(-0.145190238952637,0.000593072036281,0.311915099620819,-0.005954845342785) * float(LUMA_texOff(vec2(-1,-1)));
res += vec4(-0.106530196964741,-0.422792494297028,0.106101758778095,0.015714440494776) * float(LUMA_texOff(vec2(-1,0)));
res += vec4(0.072663925588131,-0.463034957647324,0.404488265514374,0.033704530447721) * float(LUMA_texOff(vec2(-1,1)));
res += vec4(-0.003889099694788,0.104121647775173,-0.142116084694862,-0.005075759254396) * float(LUMA_texOff(vec2(-1,2)));
res += vec4(-0.166648015379906,0.054687626659870,-0.027752382680774,-0.088823825120926) * float(LUMA_texOff(vec2(0,-2)));
res += vec4(0.004945223219693,-0.104228377342224,-0.093178674578667,0.593832314014435) * float(LUMA_texOff(vec2(0,-1)));
res += vec4(0.388843834400177,-0.068842791020870,0.132455483078957,0.044814579188824) * float(LUMA_texOff(vec2(0,0)));
res += vec4(-0.058868713676929,0.682555794715881,-0.029892617836595,0.027727261185646) * float(LUMA_texOff(vec2(0,1)));
res += vec4(0.062872759997845,-0.078235507011414,-0.038430877029896,0.094838999211788) * float(LUMA_texOff(vec2(0,2)));
res += vec4(-0.074218146502972,-0.039479088038206,0.006632805336267,-0.967040538787842) * float(LUMA_texOff(vec2(1,-2)));
res += vec4(-0.149563685059547,-0.251702517271042,0.008093809708953,-0.069860577583313) * float(LUMA_texOff(vec2(1,-1)));
res += vec4(0.264900416135788,-0.219720229506493,0.089239105582237,-0.257750689983368) * float(LUMA_texOff(vec2(1,0)));
res += vec4(-0.007209305651486,0.056211259216070,-0.099492169916630,0.110836170613766) * float(LUMA_texOff(vec2(1,1)));
res += vec4(0.030036441981792,-0.226438283920288,-0.009299324825406,-0.128321081399918) * float(LUMA_texOff(vec2(1,2)));
res += vec4(0.020774755626917,0.013160207308829,0.001948377117515,-0.477901250123978) * float(LUMA_texOff(vec2(2,-2)));
res += vec4(-0.176732972264290,0.127051845192909,-0.000248219032073,0.034281425178051) * float(LUMA_texOff(vec2(2,-1)));
res += vec4(0.112332500517368,0.099207855761051,0.008849635720253,-0.045477222651243) * float(LUMA_texOff(vec2(2,0)));
res += vec4(0.052536569535732,0.112529896199703,-0.011215144768357,0.019946379587054) * float(LUMA_texOff(vec2(2,1)));
res += vec4(-0.017575306817889,0.050275832414627,0.022139295935631,0.008027176372707) * float(LUMA_texOff(vec2(2,2)));
res = max(res, vec4(0.0)) + vec4(0.011745278723538,-0.010428648442030,0.008007386699319,0.007297328207642) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 3.200 * > OUTPUT.h LUMA.h 3.200 * > *
//!COMPONENTS 4
//!BIND LUMA
//!SAVE FEATURE2
//!DESC [AiUpscale_Medium_4x_Photo] feature map 2

vec4 hook()
{
vec4 res = vec4(0.036594171077013,0.236021175980568,0.082923516631126,-0.360404551029205);
res += vec4(-0.020351048558950,0.020005911588669,-0.003167710965499,0.051459789276123) * float(LUMA_texOff(vec2(-2,-2)));
res += vec4(-0.094181373715401,-0.040633507072926,-0.058215931057930,-0.013751383870840) * float(LUMA_texOff(vec2(-2,-1)));
res += vec4(-0.060434408485889,0.109587341547012,0.072007492184639,-0.046201605349779) * float(LUMA_texOff(vec2(-2,0)));
res += vec4(0.081424139440060,0.026616809889674,-0.043081801384687,-0.031721562147141) * float(LUMA_texOff(vec2(-2,1)));
res += vec4(0.030591854825616,0.047076851129532,0.003112981794402,0.020042421296239) * float(LUMA_texOff(vec2(-2,2)));
res += vec4(0.025527754798532,0.080373175442219,0.033209767192602,-0.077669225633144) * float(LUMA_texOff(vec2(-1,-2)));
res += vec4(-0.032422196120024,-0.001708264695480,-0.031046297401190,-0.271375566720963) * float(LUMA_texOff(vec2(-1,-1)));
res += vec4(0.498277574777603,-1.460942387580872,0.241544201970100,-0.015914930030704) * float(LUMA_texOff(vec2(-1,0)));
res += vec4(-0.239811435341835,0.074393190443516,-0.193573445081711,-0.031604707241058) * float(LUMA_texOff(vec2(-1,1)));
res += vec4(-0.001274185953662,-0.041407819837332,0.027287708595395,0.037972204387188) * float(LUMA_texOff(vec2(-1,2)));
res += vec4(-0.142336487770081,-0.033711437135935,0.002212491352111,-0.171844273805618) * float(LUMA_texOff(vec2(0,-2)));
res += vec4(-0.328294932842255,0.248162850737572,0.012179636396468,-0.439949810504913) * float(LUMA_texOff(vec2(0,-1)));
res += vec4(-0.499268084764481,-0.446399658918381,-0.044736813753843,0.121913783252239) * float(LUMA_texOff(vec2(0,0)));
res += vec4(0.773981213569641,0.081168897449970,-1.326678872108459,0.019130202010274) * float(LUMA_texOff(vec2(0,1)));
res += vec4(-0.088887840509415,-0.013676652684808,0.013244280591607,-0.068375468254089) * float(LUMA_texOff(vec2(0,2)));
res += vec4(0.040230423212051,0.000712942506652,-0.002167265396565,0.195907250046730) * float(LUMA_texOff(vec2(1,-2)));
res += vec4(0.031957712024450,-0.106726899743080,0.083992846310139,0.456390112638474) * float(LUMA_texOff(vec2(1,-1)));
res += vec4(0.387463182210922,0.191150575876236,0.367145150899887,0.560566663742065) * float(LUMA_texOff(vec2(1,0)));
res += vec4(-0.486895948648453,-0.031700562685728,0.276824504137039,0.014038681983948) * float(LUMA_texOff(vec2(1,1)));
res += vec4(0.066317789256573,0.041069012135267,-0.086515918374062,0.070191934704781) * float(LUMA_texOff(vec2(1,2)));
res += vec4(-0.002743547549471,-0.014554243534803,0.011775298975408,0.026453224942088) * float(LUMA_texOff(vec2(2,-2)));
res += vec4(0.082346804440022,0.039318412542343,-0.037489671260118,0.003234977368265) * float(LUMA_texOff(vec2(2,-1)));
res += vec4(-0.203397393226624,0.042330119758844,0.013401828706264,0.036216869950294) * float(LUMA_texOff(vec2(2,0)));
res += vec4(0.109239958226681,-0.010745333507657,-0.035949304699898,-0.012135808356106) * float(LUMA_texOff(vec2(2,1)));
res += vec4(-0.017618600279093,0.005861520767212,0.049616761505604,-0.043904863297939) * float(LUMA_texOff(vec2(2,2)));
res = max(res, vec4(0.0)) + vec4(1.031941771507263,0.006413411349058,-0.008484926074743,-0.022617824375629) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 3.200 * > OUTPUT.h LUMA.h 3.200 * > *
//!COMPONENTS 4
//!BIND LUMA
//!SAVE FEATURE3
//!DESC [AiUpscale_Medium_4x_Photo] feature map 3

vec4 hook()
{
vec4 res = vec4(-0.032282598316669,0.274620324373245,-0.691917061805725,-0.715681433677673);
res += vec4(-0.033390264958143,0.017280846834183,0.029344134032726,-0.035841461271048) * float(LUMA_texOff(vec2(-2,-2)));
res += vec4(0.019156737253070,-0.010766568593681,-0.057796575129032,0.025659102946520) * float(LUMA_texOff(vec2(-2,-1)));
res += vec4(0.127015128731728,0.082845143973827,-0.002031008247286,0.023244649171829) * float(LUMA_texOff(vec2(-2,0)));
res += vec4(-0.067727029323578,0.046017605811357,-0.007955916225910,0.023629426956177) * float(LUMA_texOff(vec2(-2,1)));
res += vec4(-0.028699763119221,-0.016875626519322,0.038557309657335,-0.050244607031345) * float(LUMA_texOff(vec2(-2,2)));
res += vec4(-0.042589765042067,0.004579975269735,0.010107950307429,-0.029596827924252) * float(LUMA_texOff(vec2(-1,-2)));
res += vec4(0.156052500009537,-0.222692281007767,-0.002254608320072,0.024577030912042) * float(LUMA_texOff(vec2(-1,-1)));
res += vec4(0.318168312311172,0.117129176855087,0.134257674217224,-0.053451500833035) * float(LUMA_texOff(vec2(-1,0)));
res += vec4(0.104266300797462,0.039789125323296,-0.111752837896347,-0.033367604017258) * float(LUMA_texOff(vec2(-1,1)));
res += vec4(0.002267729258165,0.061020165681839,0.007313725072891,0.083430908620358) * float(LUMA_texOff(vec2(-1,2)));
res += vec4(0.018225358799100,0.043799862265587,-0.093004077672958,0.089321464300156) * float(LUMA_texOff(vec2(0,-2)));
res += vec4(-0.095328450202942,-0.589351058006287,0.469652742147446,-0.027854146435857) * float(LUMA_texOff(vec2(0,-1)));
res += vec4(0.493849068880081,-1.031145334243774,0.657040059566498,0.763302206993103) * float(LUMA_texOff(vec2(0,0)));
res += vec4(-0.033099170774221,0.053479835391045,0.056828103959560,0.172315165400505) * float(LUMA_texOff(vec2(0,1)));
res += vec4(0.036301854997873,0.062023013830185,-0.053416553884745,-0.025225820019841) * float(LUMA_texOff(vec2(0,2)));
res += vec4(0.025200448930264,0.015565343201160,0.078500308096409,-0.037595454603434) * float(LUMA_texOff(vec2(1,-2)));
res += vec4(-0.238943889737129,-0.243771478533745,-0.103757917881012,-0.205507889389992) * float(LUMA_texOff(vec2(1,-1)));
res += vec4(-0.803103923797607,0.123442977666855,0.040153801441193,0.400092691183090) * float(LUMA_texOff(vec2(1,0)));
res += vec4(0.097341731190681,-0.040089555084705,-0.110299997031689,-0.084945954382420) * float(LUMA_texOff(vec2(1,1)));
res += vec4(-0.016835525631905,0.037813238799572,0.025988297536969,-0.027872825041413) * float(LUMA_texOff(vec2(1,2)));
res += vec4(0.011658921837807,0.046338323503733,0.026710567995906,0.001295052235946) * float(LUMA_texOff(vec2(2,-2)));
res += vec4(0.107823565602303,0.058943662792444,-0.020999720320106,0.029867678880692) * float(LUMA_texOff(vec2(2,-1)));
res += vec4(-0.234297916293144,0.050345767289400,-0.006594348698854,-0.018891608342528) * float(LUMA_texOff(vec2(2,0)));
res += vec4(0.015241735614836,-0.021187858656049,0.038034930825233,-0.062615960836411) * float(LUMA_texOff(vec2(2,1)));
res += vec4(-0.007974964566529,0.003546667983755,0.006191160529852,-0.001720892265439) * float(LUMA_texOff(vec2(2,2)));
res = max(res, vec4(0.0)) + vec4(-0.064499281346798,0.006217184010893,-0.002929946407676,-0.023395007476211) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 3.200 * > OUTPUT.h LUMA.h 3.200 * > *
//!COMPONENTS 4
//!BIND LUMA
//!SAVE FEATURE4
//!DESC [AiUpscale_Medium_4x_Photo] feature map 4

vec4 hook()
{
vec4 res = vec4(-0.076236553490162,0.059712160378695,0.042956300079823,-0.068093344569206);
res += vec4(0.039212796837091,0.052048999816179,-0.033812019973993,0.034016415476799) * float(LUMA_texOff(vec2(-2,-2)));
res += vec4(-0.076782226562500,-0.074505381286144,0.078375883400440,0.101315811276436) * float(LUMA_texOff(vec2(-2,-1)));
res += vec4(-0.152912855148315,-0.027562836185098,0.005064318887889,-0.145179465413094) * float(LUMA_texOff(vec2(-2,0)));
res += vec4(-0.069964863359928,-0.014591657556593,-0.030852669849992,-0.021445864811540) * float(LUMA_texOff(vec2(-2,1)));
res += vec4(0.044753532856703,0.051148720085621,-0.035478923469782,0.047269634902477) * float(LUMA_texOff(vec2(-2,2)));
res += vec4(0.001264121383429,-0.057777665555477,0.110960885882378,-0.024654516950250) * float(LUMA_texOff(vec2(-1,-2)));
res += vec4(0.046236932277679,0.158675596117973,-0.035645473748446,-0.051660068333149) * float(LUMA_texOff(vec2(-1,-1)));
res += vec4(-0.001736524631269,-0.471773594617844,-0.629220128059387,-0.017193267121911) * float(LUMA_texOff(vec2(-1,0)));
res += vec4(0.027555724605918,0.397921264171600,0.305836319923401,-0.130103901028633) * float(LUMA_texOff(vec2(-1,1)));
res += vec4(-0.178644075989723,-0.038039743900299,-0.004890274256468,0.128867462277412) * float(LUMA_texOff(vec2(-1,2)));
res += vec4(0.095200151205063,-0.082861535251141,-0.165335953235626,0.054763562977314) * float(LUMA_texOff(vec2(0,-2)));
res += vec4(-0.295780748128891,-0.053857594728470,-0.004713089670986,0.467695325613022) * float(LUMA_texOff(vec2(0,-1)));
res += vec4(0.877459943294525,-0.195034906268120,0.518660187721252,-0.110025040805340) * float(LUMA_texOff(vec2(0,0)));
res += vec4(-0.014451433904469,0.303475648164749,-0.051768932491541,-0.304378926753998) * float(LUMA_texOff(vec2(0,1)));
res += vec4(-0.014973643235862,0.031130732968450,-0.056873153895140,-0.286636799573898) * float(LUMA_texOff(vec2(0,2)));
res += vec4(-0.048686619848013,0.051166191697121,0.085108794271946,-0.074563480913639) * float(LUMA_texOff(vec2(1,-2)));
res += vec4(0.046791482716799,0.260498583316803,-0.194100156426430,0.282119810581207) * float(LUMA_texOff(vec2(1,-1)));
res += vec4(-0.128868147730827,-0.455807030200958,0.600781142711639,0.222679808735847) * float(LUMA_texOff(vec2(1,0)));
res += vec4(-0.123095929622650,0.205299869179726,-0.381089866161346,-0.077429950237274) * float(LUMA_texOff(vec2(1,1)));
res += vec4(0.095914095640182,-0.041244260966778,0.087529532611370,-0.021260783076286) * float(LUMA_texOff(vec2(1,2)));
res += vec4(-0.118878819048405,-0.024753538891673,0.038492336869240,-0.022567136213183) * float(LUMA_texOff(vec2(2,-2)));
res += vec4(0.018556365743279,-0.065324105322361,-0.001803222578019,0.010116383433342) * float(LUMA_texOff(vec2(2,-1)));
res += vec4(-0.030684422701597,0.087764352560043,-0.330447852611542,0.010417018085718) * float(LUMA_texOff(vec2(2,0)));
res += vec4(0.048789680004120,-0.066445872187614,0.061689980328083,-0.064882047474384) * float(LUMA_texOff(vec2(2,1)));
res += vec4(0.010243603959680,0.037722021341324,-0.012793231755495,0.051713727414608) * float(LUMA_texOff(vec2(2,2)));
res = max(res, vec4(0.0)) + vec4(0.614040970802307,0.615744233131409,0.916771054267883,0.032504562288523) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 3.200 * > OUTPUT.h LUMA.h 3.200 * > *
//!COMPONENTS 4
//!BIND LUMA
//!SAVE FEATURE5
//!DESC [AiUpscale_Medium_4x_Photo] feature map 5

vec4 hook()
{
vec4 res = vec4(0.199388071894646,-0.000716377224308,0.330814301967621,0.065420456230640);
res += vec4(0.042496591806412,0.003273109905422,-0.004515177570283,-0.006450265180320) * float(LUMA_texOff(vec2(-2,-2)));
res += vec4(-0.079693071544170,-0.072127215564251,0.002364208456129,0.070550650358200) * float(LUMA_texOff(vec2(-2,-1)));
res += vec4(-0.018089583143592,0.018241547048092,-0.124890945851803,-0.081151656806469) * float(LUMA_texOff(vec2(-2,0)));
res += vec4(-0.036116566509008,0.043560177087784,0.142312988638878,0.044491957873106) * float(LUMA_texOff(vec2(-2,1)));
res += vec4(0.000711465661880,0.004956555552781,0.021295225247741,-0.026927758008242) * float(LUMA_texOff(vec2(-2,2)));
res += vec4(0.051625799387693,0.035002145916224,0.012517384253442,-0.031475950032473) * float(LUMA_texOff(vec2(-1,-2)));
res += vec4(-0.032947067171335,0.041567489504814,0.174334928393364,0.017252812162042) * float(LUMA_texOff(vec2(-1,-1)));
res += vec4(-0.519017815589905,0.199119001626968,0.401519179344177,0.033680804073811) * float(LUMA_texOff(vec2(-1,0)));
res += vec4(-0.256260037422180,-0.204017519950867,0.015617450699210,-0.109534680843353) * float(LUMA_texOff(vec2(-1,1)));
res += vec4(-0.033118590712547,-0.035901919007301,-0.016032708808780,0.035065222531557) * float(LUMA_texOff(vec2(-1,2)));
res += vec4(-0.041356090456247,0.154743611812592,-0.154619634151459,-0.028655616566539) * float(LUMA_texOff(vec2(0,-2)));
res += vec4(0.029718024656177,0.231499433517456,0.248757436871529,-0.126432225108147) * float(LUMA_texOff(vec2(0,-1)));
res += vec4(-0.650289595127106,0.448676735162735,-0.965260148048401,-0.762245774269104) * float(LUMA_texOff(vec2(0,0)));
res += vec4(-0.146152719855309,-0.499215185642242,-0.204650178551674,0.151957750320435) * float(LUMA_texOff(vec2(0,1)));
res += vec4(0.092340014874935,-0.428313046693802,-0.129824295639992,-0.069271035492420) * float(LUMA_texOff(vec2(0,2)));
res += vec4(-0.016549330204725,-0.168365314602852,0.008869406767190,0.072503335773945) * float(LUMA_texOff(vec2(1,-2)));
res += vec4(-0.089571662247181,-0.211635366082191,-0.199786722660065,0.147406041622162) * float(LUMA_texOff(vec2(1,-1)));
res += vec4(-0.290464937686920,-0.225202634930611,0.261226445436478,0.627944111824036) * float(LUMA_texOff(vec2(1,0)));
res += vec4(-0.262163549661636,-0.217999890446663,-0.115479893982410,-0.100523166358471) * float(LUMA_texOff(vec2(1,1)));
res += vec4(0.034225083887577,-0.144562438130379,0.089182518422604,0.048509765416384) * float(LUMA_texOff(vec2(1,2)));
res += vec4(-0.003473317716271,-0.126301050186157,-0.001896886737086,-0.025353005155921) * float(LUMA_texOff(vec2(2,-2)));
res += vec4(0.019118458032608,-0.144373729825020,0.033676691353321,-0.127559706568718) * float(LUMA_texOff(vec2(2,-1)));
res += vec4(-0.101834371685982,-0.299519449472427,-0.200088992714882,0.208274155855179) * float(LUMA_texOff(vec2(2,0)));
res += vec4(0.000506029406097,-0.078000180423260,-0.002536950865760,0.011560973711312) * float(LUMA_texOff(vec2(2,1)));
res += vec4(0.005030253902078,-0.068235710263252,0.002065136563033,0.001941786496900) * float(LUMA_texOff(vec2(2,2)));
res = max(res, vec4(0.0)) + vec4(0.271336585283279,0.001075162086636,0.999328970909119,0.295804053544998) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 3.200 * > OUTPUT.h LUMA.h 3.200 * > *
//!COMPONENTS 4
//!BIND LUMA
//!SAVE FEATURE6
//!DESC [AiUpscale_Medium_4x_Photo] feature map 6

vec4 hook()
{
vec4 res = vec4(0.025550192221999,-0.006611885037273,0.009695481508970,-0.052722416818142);
res += vec4(0.041300944983959,-0.153004318475723,-0.000704413396306,0.026805968955159) * float(LUMA_texOff(vec2(-2,-2)));
res += vec4(0.005075656343251,0.313700139522552,-0.210790500044823,0.105574525892735) * float(LUMA_texOff(vec2(-2,-1)));
res += vec4(0.179094582796097,0.124772682785988,-0.075100541114807,0.154886156320572) * float(LUMA_texOff(vec2(-2,0)));
res += vec4(-0.185539662837982,-0.117697685956955,0.099691927433014,0.097527064383030) * float(LUMA_texOff(vec2(-2,1)));
res += vec4(-0.022967373952270,-0.033954776823521,0.067661263048649,0.041335202753544) * float(LUMA_texOff(vec2(-2,2)));
res += vec4(-0.135993674397469,0.176218450069427,-0.127565935254097,-0.075383827090263) * float(LUMA_texOff(vec2(-1,-2)));
res += vec4(0.124874554574490,-0.497012376785278,0.277398407459259,0.128932759165764) * float(LUMA_texOff(vec2(-1,-1)));
res += vec4(0.307868182659149,-0.153076782822609,-0.425528138875961,-0.172754585742950) * float(LUMA_texOff(vec2(-1,0)));
res += vec4(-0.165087014436722,-0.036335147917271,0.150140926241875,-0.024281028658152) * float(LUMA_texOff(vec2(-1,1)));
res += vec4(0.144882708787918,0.147398129105568,0.022694351151586,-0.027366086840630) * float(LUMA_texOff(vec2(-1,2)));
res += vec4(-0.158420532941818,-0.069610863924026,0.246786370873451,0.015733515843749) * float(LUMA_texOff(vec2(0,-2)));
res += vec4(0.083604626357555,0.116828620433807,-0.415635555982590,-0.060568008571863) * float(LUMA_texOff(vec2(0,-1)));
res += vec4(0.102255463600159,0.457965403795242,0.520355939865112,0.593115389347076) * float(LUMA_texOff(vec2(0,0)));
res += vec4(0.056217409670353,-0.092937342822552,-0.333749383687973,0.112045556306839) * float(LUMA_texOff(vec2(0,1)));
res += vec4(0.058282520622015,0.037684671580791,0.140049383044243,-0.064188934862614) * float(LUMA_texOff(vec2(0,2)));
res += vec4(0.263518810272217,0.020154878497124,-0.087032228708267,0.014081262983382) * float(LUMA_texOff(vec2(1,-2)));
res += vec4(-0.101535417139530,-0.149266809225082,0.031429614871740,-0.347469687461853) * float(LUMA_texOff(vec2(1,-1)));
res += vec4(-0.268437653779984,-0.039714902639389,0.150483161211014,-0.284546017646790) * float(LUMA_texOff(vec2(1,0)));
res += vec4(0.034083642065525,0.039807856082916,-0.109314054250717,-0.048611763864756) * float(LUMA_texOff(vec2(1,1)));
res += vec4(-0.248656898736954,-0.099387131631374,-0.110143445432186,0.096144087612629) * float(LUMA_texOff(vec2(1,2)));
res += vec4(-0.008830401115119,0.077543608844280,0.039643242955208,0.001330884522758) * float(LUMA_texOff(vec2(2,-2)));
res += vec4(-0.091214872896671,0.042519386857748,-0.022665301337838,-0.018186893314123) * float(LUMA_texOff(vec2(2,-1)));
res += vec4(-0.301814794540405,-0.273057103157043,0.123421147465706,0.036954909563065) * float(LUMA_texOff(vec2(2,0)));
res += vec4(0.261359244585037,0.186277016997337,0.065111219882965,-0.186246529221535) * float(LUMA_texOff(vec2(2,1)));
res += vec4(0.068192198872566,-0.072312399744987,-0.016551086679101,0.004048510920256) * float(LUMA_texOff(vec2(2,2)));
res = max(res, vec4(0.0)) + vec4(0.171931445598602,-0.176255002617836,0.950041413307190,0.785176694393158) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 3.200 * > OUTPUT.h LUMA.h 3.200 * > *
//!COMPONENTS 4
//!BIND FEATURE1
//!BIND FEATURE2
//!BIND FEATURE3
//!BIND FEATURE4
//!BIND FEATURE5
//!BIND FEATURE6
//!SAVE MODEL1
//!DESC [AiUpscale_Medium_4x_Photo] mapping 1_1

vec4 hook()
{
vec4 res = vec4(-0.012919923290610,-0.023704454302788,-0.034436855465174,-0.031519331037998);
res += mat4(0.045755628496408,-0.108778178691864,0.045296944677830,-0.013916008174419,0.183051958680153,0.067843548953533,-0.066686831414700,-0.022091016173363,0.087152384221554,-0.118428789079189,-0.117848388850689,0.112353831529617,0.059628095477819,0.035776652395725,-0.047643698751926,0.279032528400421) * FEATURE1_texOff(vec2(-1,-1));
res += mat4(-0.030634880065918,-0.001917451270856,0.102332100272179,0.022381676360965,0.010314864106476,0.032889120280743,0.107705667614937,-0.006609688047320,-0.154613107442856,-0.091738015413284,0.002271179575473,0.030614495277405,0.169169142842293,-0.102797538042068,-0.153345569968224,-0.107353530824184) * FEATURE1_texOff(vec2(-1,0));
res += mat4(-0.081035628914833,0.118537224829197,-0.065963767468929,0.036916453391314,-0.022867143154144,0.007429636083543,-0.044137794524431,0.023934829980135,0.008961603045464,-0.116678759455681,0.063810728490353,-0.020244939252734,0.019788246601820,0.131209969520569,-0.119760103523731,-0.033554971218109) * FEATURE1_texOff(vec2(-1,1));
res += mat4(0.120312035083771,-0.147058367729187,0.066245406866074,-0.090249471366405,0.149890348315239,0.058382008224726,-0.124169476330280,0.239775255322456,0.178557589650154,0.163279995322227,0.057122156023979,-0.084128282964230,-0.028323961421847,-0.057409711182117,-0.048824857920408,-0.028395928442478) * FEATURE1_texOff(vec2(0,-1));
res += mat4(-0.246179655194283,-0.049423914402723,-0.022860435768962,-0.117357112467289,-0.082815848290920,0.059570584446192,0.194630652666092,0.215307697653770,0.142807200551033,0.073103919625282,0.279995858669281,-0.047713380306959,0.240413844585419,-0.040215950459242,-0.073232509195805,0.127850025892258) * FEATURE1_texOff(vec2(0,0));
res += mat4(0.003266815794632,0.052616290748119,-0.070306286215782,-0.031974386423826,-0.023328714072704,-0.028607461601496,-0.084939539432526,0.162378877401352,0.135225921869278,0.098326846957207,0.286802083253860,-0.025423716753721,0.016291489824653,0.070528075098991,-0.040835693478584,-0.260347068309784) * FEATURE1_texOff(vec2(0,1));
res += mat4(-0.095024578273296,-0.020256517454982,0.030864913016558,-0.027720784768462,0.038178898394108,0.154190570116043,-0.064876824617386,0.177057772874832,0.096288383007050,-0.070442073047161,-0.196175754070282,0.221340939402580,-0.102264337241650,0.049805782735348,0.086755931377411,-0.147294133901596) * FEATURE1_texOff(vec2(1,-1));
res += mat4(0.149288848042488,0.098212927579880,-0.043044809252024,-0.033028867095709,0.003332974389195,-0.053960122168064,-0.127655446529388,-0.043084561824799,-0.079127155244350,0.024231579154730,-0.010522012598813,0.047999531030655,0.091530263423920,-0.089519739151001,0.256971478462219,-0.093004241585732) * FEATURE1_texOff(vec2(1,0));
res += mat4(0.033839553594589,-0.059116698801517,-0.080252155661583,0.005562593694776,0.046862769871950,0.043470706790686,0.004251973703504,0.007830664515495,-0.157836094498634,0.133193254470825,-0.004712388385087,-0.205402359366417,-0.035017304122448,-0.075301773846149,0.197902813553810,-0.029786605387926) * FEATURE1_texOff(vec2(1,1));
res += mat4(-0.136417731642723,0.125089004635811,0.062592312693596,-0.006434766110033,-0.116246879100800,-0.005245997570455,-0.178901314735413,-0.059547580778599,0.187099933624268,0.190008401870728,-0.060870837420225,-0.015603953041136,0.099752619862556,-0.046267267316580,0.034021638333797,-0.024569643661380) * FEATURE2_texOff(vec2(-1,-1));
res += mat4(-0.102793522179127,0.121604554355145,0.227853193879128,-0.112728938460350,0.054423920810223,-0.082831889390945,0.088886670768261,-0.043322604149580,0.101564049720764,-0.110153287649155,0.053867038339376,0.176475569605827,0.036233842372894,-0.168106406927109,-0.037161450833082,0.104664772748947) * FEATURE2_texOff(vec2(-1,0));
res += mat4(0.285468220710754,-0.005968559067696,-0.021013837307692,0.078298151493073,-0.023743286728859,0.005299401469529,-0.164146110415459,-0.105684332549572,-0.094010882079601,-0.028701178729534,0.161200553178787,-0.075695395469666,-0.010280139744282,-0.163524866104126,-0.137674033641815,-0.064642898738384) * FEATURE2_texOff(vec2(-1,1));
res += mat4(-0.081887446343899,-0.244896352291107,-0.044294063001871,-0.103476025164127,-0.136752545833588,0.189294517040253,-0.031587179750204,-0.116445459425449,-0.204045102000237,0.272454231977463,0.000914008938707,-0.032695401459932,0.087778940796852,-0.136707842350006,-0.086876645684242,0.056561350822449) * FEATURE2_texOff(vec2(0,-1));
res += mat4(0.125650107860565,-0.204608008265495,-0.127924710512161,0.061895091086626,0.128396362066269,0.119541577994823,0.180236890912056,-0.144319221377373,-0.037925612181425,-0.025423103943467,-0.215014785528183,0.159912183880806,-0.145263805985451,-0.039768304675817,-0.059573683887720,0.094044946134090) * FEATURE2_texOff(vec2(0,0));
res += mat4(0.236873313784599,0.012032319791615,-0.301983535289764,0.380426317453384,0.026157692074776,-0.011753661558032,-0.229256451129913,-0.223188430070877,0.003328324295580,0.077482104301453,-0.050989188253880,-0.188401415944099,-0.103171885013580,-0.021800640970469,0.069615252315998,-0.159139394760132) * FEATURE2_texOff(vec2(0,1));
res += mat4(0.082462593913078,0.531850516796112,0.013909689150751,0.015548677183688,0.163719102740288,0.102793246507645,-0.094749957323074,0.025228792801499,-0.043316021561623,0.115951023995876,0.023375606164336,0.039993673563004,0.055618394166231,0.040467470884323,-0.057781446725130,-0.023815160617232) * FEATURE2_texOff(vec2(1,-1));
res += mat4(-0.178926676511765,-0.143380433320999,-0.042712457478046,0.042070750147104,-0.167920991778374,0.063220314681530,-0.168737754225731,-0.076204769313335,0.220369830727577,0.004221085458994,0.083903521299362,0.132933855056763,-0.047410927712917,-0.052273664623499,-0.011895909905434,-0.057286910712719) * FEATURE2_texOff(vec2(1,0));
res += mat4(-0.061102136969566,-0.041100673377514,0.281577765941620,0.010349087417126,-0.184227555990219,0.144035175442696,-0.242781415581703,-0.059170059859753,0.057547859847546,0.041503578424454,-0.027323653921485,-0.039728060364723,-0.049973502755165,-0.072153359651566,-0.051611289381981,-0.038731694221497) * FEATURE2_texOff(vec2(1,1));
res += mat4(-0.194373488426208,0.031975816935301,-0.060994524508715,0.139964714646339,-0.099137723445892,0.016537530347705,-0.020469143986702,-0.040029868483543,0.219845458865166,-0.118755556643009,-0.010454105213284,0.037146642804146,0.032708544284105,-0.048089977353811,0.013993756845593,0.043283835053444) * FEATURE3_texOff(vec2(-1,-1));
res += mat4(0.043894834816456,-0.069451577961445,0.193103402853012,0.194834217429161,0.116569757461548,-0.000136003014632,-0.000144499877933,0.134801059961319,0.138657703995705,0.031603354960680,-0.074288681149483,0.101562261581421,-0.262513458728790,0.059141144156456,-0.140712916851044,0.246205091476440) * FEATURE3_texOff(vec2(-1,0));
res += mat4(0.006410286296159,-0.059936515986919,-0.292876094579697,0.251851975917816,0.036972366273403,-0.148146897554398,-0.184658572077751,-0.046739265322685,-0.056317612528801,0.096263483166695,0.197423428297043,0.142566338181496,0.028852950781584,0.039545759558678,-0.023511119186878,0.154630050063133) * FEATURE3_texOff(vec2(-1,1));
res += mat4(-0.233284816145897,-0.027825282886624,-0.031591258943081,0.060960330069065,0.130301758646965,-0.122811540961266,-0.070971623063087,0.128396213054657,-0.027419274672866,-0.019402259960771,0.026472758501768,-0.144653052091599,-0.162028580904007,-0.063743300735950,0.113577120006084,-0.084981091320515) * FEATURE3_texOff(vec2(0,-1));
res += mat4(0.104498907923698,-0.011791964061558,0.227265805006027,0.181537002325058,-0.056679900735617,-0.089590080082417,-0.076016820967197,-0.059785090386868,-0.200173646211624,0.075582914054394,-0.110547147691250,0.127488180994987,-0.249002426862717,-0.086346261203289,0.055896509438753,0.068113818764687) * FEATURE3_texOff(vec2(0,0));
res += mat4(-0.006279462017119,-0.116433456540108,-0.384299427270889,0.260083556175232,0.019074264913797,-0.003240751335397,0.061967905610800,-0.176512822508812,-0.076535269618034,0.167498230934143,-0.238160848617554,-0.159133672714233,0.128811702132225,-0.090070635080338,-0.015182682313025,-0.093219555914402) * FEATURE3_texOff(vec2(0,1));
res += mat4(-0.237230762839317,-0.008126525208354,0.006432294379920,-0.097715236246586,-0.031076656654477,0.178624317049980,0.127380579710007,-0.099203333258629,-0.154738053679466,-0.156031638383865,-0.155040547251701,-0.163193911314011,-0.063417293131351,-0.060675054788589,-0.059029240161180,-0.046752888709307) * FEATURE3_texOff(vec2(1,-1));
res += mat4(0.193317815661430,-0.136938005685806,0.127727568149567,-0.052858889102936,-0.108391337096691,-0.155259072780609,0.035984326153994,-0.121268749237061,0.050861489027739,-0.089503660798073,0.060620203614235,0.213841736316681,0.218691393733025,0.026800489053130,0.093918204307556,0.022249789908528) * FEATURE3_texOff(vec2(1,0));
res += mat4(-0.033281691372395,-0.033190734684467,-0.349268257617950,-0.096061125397682,0.101703301072121,-0.055335752665997,0.007607290055603,-0.113539583981037,0.126187786459923,0.005036341492087,-0.004137876443565,-0.058868329972029,0.086659811437130,-0.014490708708763,-0.064853698015213,-0.036099500954151) * FEATURE3_texOff(vec2(1,1));
res += mat4(-0.003786111483350,0.078575946390629,-0.048756226897240,0.059200353920460,-0.180155068635941,-0.293780535459518,0.065768562257290,-0.080206997692585,-0.179227441549301,0.160195767879486,0.071019358932972,0.113911479711533,-0.017152741551399,0.005711248144507,0.173007428646088,-0.090605132281780) * FEATURE4_texOff(vec2(-1,-1));
res += mat4(-0.017681851983070,-0.054117277264595,-0.140372350811958,0.100656770169735,0.090785674750805,0.072253428399563,0.187363356351852,-0.015487396158278,-0.426755994558334,-0.129168435931206,-0.004182219970971,-0.040538132190704,-0.127184659242630,0.037876207381487,0.200378641486168,-0.031416255980730) * FEATURE4_texOff(vec2(-1,0));
res += mat4(0.269212931394577,0.082627192139626,0.115047462284565,0.105792529881001,-0.046061195433140,0.007029904052615,-0.133913770318031,-0.129426866769791,0.270806878805161,-0.029359761625528,-0.082056529819965,0.192735388875008,-0.089081138372421,-0.211943715810776,-0.228646978735924,-0.061265870928764) * FEATURE4_texOff(vec2(-1,1));
res += mat4(-0.206891730427742,0.177576363086700,0.005767452996224,-0.137693211436272,0.113368332386017,-0.027169227600098,-0.046073615550995,-0.067747913300991,-0.248101219534874,-0.026022560894489,-0.109527833759785,-0.059893835335970,-0.064238734543324,-0.214823186397552,-0.009865273721516,-0.019642587751150) * FEATURE4_texOff(vec2(0,-1));
res += mat4(-0.203265279531479,-0.246104612946510,-0.196538060903549,0.122321836650372,0.086131557822227,-0.208644255995750,0.157742768526077,-0.139269649982452,0.016677750274539,0.282119989395142,0.255387604236603,0.183954060077667,0.070877216756344,-0.113549686968327,-0.063604436814785,0.285311341285706) * FEATURE4_texOff(vec2(0,0));
res += mat4(0.123191654682159,-0.214278876781464,-0.329943388700485,0.144132971763611,-0.180317223072052,-0.150195240974426,-0.216857746243477,0.140941485762596,0.289743512868881,-0.122474543750286,-0.163880392909050,0.179452717304230,-0.001217301236466,-0.069760523736477,0.117931745946407,-0.268615812063217) * FEATURE4_texOff(vec2(0,1));
res += mat4(0.110292620956898,-0.188846424221992,0.083187289535999,0.114997565746307,0.227857276797295,-0.134232565760612,0.103399969637394,0.091088712215424,0.214311838150024,-0.071645118296146,-0.048767462372780,-0.032502375543118,-0.032533712685108,0.155868843197823,0.004276542924345,-0.117296226322651) * FEATURE4_texOff(vec2(1,-1));
res += mat4(0.151381447911263,0.088840261101723,0.106418594717979,0.360952228307724,0.088392153382301,0.189358189702034,-0.289092332124710,-0.439932465553284,0.047061800956726,-0.068199142813683,0.072797484695911,-0.133953183889389,-0.110012292861938,-0.044975787401199,0.009526978246868,0.117133952677250) * FEATURE4_texOff(vec2(1,0));
res += mat4(-0.194033756852150,0.179219648241997,0.059510279446840,0.154087349772453,-0.021090697497129,0.135866686701775,0.099440529942513,-0.096179671585560,0.094909168779850,-0.065858706831932,-0.182874768972397,0.045264530926943,-0.059846654534340,0.156560450792313,-0.009080438874662,-0.131052061915398) * FEATURE4_texOff(vec2(1,1));
res += mat4(0.069875046610832,-0.112909100949764,0.174183622002602,0.137018948793411,-0.075899384915829,-0.009771242737770,-0.004866484552622,0.020913533866405,-0.126946598291397,0.033410917967558,-0.023526422679424,0.027812369167805,-0.443110376596451,0.185303717851639,0.064765527844429,0.072991363704205) * FEATURE5_texOff(vec2(-1,-1));
res += mat4(-0.075116522610188,-0.039720825850964,-0.072901517152786,0.066828772425652,-0.022417513653636,-0.044596809893847,0.084653124213219,-0.088465057313442,0.256949424743652,0.024352880194783,0.453174144029617,-0.096577659249306,0.379530578851700,0.155920326709747,0.163368955254555,-0.033798679709435) * FEATURE5_texOff(vec2(-1,0));
res += mat4(0.015623729676008,-0.082591265439987,-0.092250756919384,0.120880149304867,0.028769293799996,-0.049845602363348,-0.099728018045425,-0.098707035183907,0.203285709023476,0.073408789932728,-0.211951166391373,0.022830210626125,0.173702731728554,0.105762489140034,-0.343679189682007,0.118706598877907) * FEATURE5_texOff(vec2(-1,1));
res += mat4(0.156570836901665,-0.009753285907209,0.051209896802902,0.024423573166132,0.111278802156448,-0.057926528155804,-0.052012741565704,0.196534872055054,0.209548592567444,-0.220715463161469,-0.067150838673115,0.002981457393616,0.064082942903042,-0.482539743185043,-0.008917876519263,-0.101400092244148) * FEATURE5_texOff(vec2(0,-1));
res += mat4(-0.055931471288204,0.092600286006927,-0.060593150556087,-0.036944534629583,0.169474825263023,-0.031796466559172,0.019670236855745,0.362379461526871,-0.168890312314034,0.144536137580872,-0.120765127241611,0.137915089726448,0.218590334057808,-0.037864834070206,0.172827050089836,-0.205673292279243) * FEATURE5_texOff(vec2(0,0));
res += mat4(-0.178249478340149,0.064749397337437,-0.082499101758003,0.139096707105637,0.137436151504517,-0.080083630979061,-0.144589453935623,0.187433838844299,-0.284445047378540,0.218375012278557,-0.083942554891109,0.060395464301109,-0.111779697239399,-0.032234050333500,-0.336868911981583,-0.130690127611160) * FEATURE5_texOff(vec2(0,1));
res += mat4(0.135210916399956,0.070168420672417,-0.116818480193615,0.054802622646093,0.000885720888618,0.095662772655487,0.097148604691029,-0.092539943754673,-0.009290973655879,0.189344048500061,0.024289699271321,-0.176798731088638,0.088902577757835,0.102018654346466,0.013322984799743,-0.089970752596855) * FEATURE5_texOff(vec2(1,-1));
res += mat4(-0.089733906090260,0.048260394483805,-0.122117489576340,0.123174563050270,0.000974039081484,0.046810790896416,0.105556733906269,0.283872991800308,-0.236849203705788,-0.307874739170074,0.035436265170574,-0.264186233282089,0.103908047080040,0.082792393863201,0.258745789527893,-0.105060413479805) * FEATURE5_texOff(vec2(1,0));
res += mat4(0.028233602643013,0.067791245877743,0.078458219766617,0.319605052471161,0.005371255334467,0.088215686380863,-0.059231508523226,-0.010758085176349,0.092718593776226,-0.118742913007736,0.149807348847389,-0.444934159517288,-0.328698575496674,-0.227202817797661,-0.177412912249565,-0.119163461029530) * FEATURE5_texOff(vec2(1,1));
res += mat4(0.003791531082243,-0.062391456216574,0.215675711631775,-0.108003631234169,-0.082204207777977,0.095338925719261,-0.103853501379490,-0.019014047458768,-0.166689485311508,0.121355898678303,0.049835227429867,0.025835771113634,-0.047865644097328,-0.148171558976173,-0.126807361841202,0.074347525835037) * FEATURE6_texOff(vec2(-1,-1));
res += mat4(-0.192073106765747,0.076505206525326,-0.220527991652489,-0.044334296137094,-0.095729403197765,-0.013523523695767,0.062836252152920,0.112527556717396,-0.083029694855213,0.089984737336636,-0.099591828882694,0.015896307304502,-0.058992307633162,-0.186459332704544,-0.036370918154716,0.048791561275721) * FEATURE6_texOff(vec2(-1,0));
res += mat4(-0.348773837089539,0.123411305248737,0.150007873773575,-0.037445750087500,-0.244556754827499,-0.003040567273274,-0.074979767203331,0.150216400623322,0.088586620986462,0.069796323776245,0.097414702177048,0.173779308795929,0.019600247964263,-0.169612228870392,0.058109238743782,0.126468300819397) * FEATURE6_texOff(vec2(-1,1));
res += mat4(0.198219358921051,-0.094112716615200,-0.064290471374989,-0.057076666504145,-0.036208380013704,0.045247279107571,-0.058895070105791,-0.077240675687790,-0.306381762027740,0.063479669392109,-0.055759694427252,-0.093444913625717,0.050704512745142,0.366519480943680,-0.154862925410271,-0.055487971752882) * FEATURE6_texOff(vec2(0,-1));
res += mat4(-0.039581693708897,-0.157521441578865,-0.358676880598068,0.092069193720818,-0.052443902939558,0.034106824547052,-0.099883399903774,-0.048957951366901,-0.011654316447675,-0.220484316349030,0.080798238515854,0.179046988487244,-0.086226493120193,0.126182168722153,0.136861294507980,0.019729083403945) * FEATURE6_texOff(vec2(0,0));
res += mat4(0.021547986194491,-0.247384294867516,0.176894739270210,0.144482284784317,0.145452812314034,-0.056526973843575,-0.017771784216166,0.090807601809502,0.070068672299385,0.008230750449002,-0.008644484914839,0.100378602743149,0.147454380989075,-0.095457047224045,-0.110707536339760,0.257059663534164) * FEATURE6_texOff(vec2(0,1));
res += mat4(0.315048933029175,0.282633781433105,0.046029288321733,0.017274705693126,-0.120740495622158,-0.098977483808994,0.077926889061928,-0.022339517250657,0.120279207825661,-0.263647705316544,-0.034432671964169,-0.129942551255226,-0.029240880161524,-0.248297199606895,-0.142153829336166,-0.149983420968056) * FEATURE6_texOff(vec2(1,-1));
res += mat4(-0.058633971959352,0.007348864339292,-0.337638407945633,-0.097651697695255,0.075116075575352,0.052735380828381,0.077040523290634,0.028619959950447,0.277840882539749,0.296240001916885,0.123658485710621,0.187000632286072,0.022161880508065,0.203847810626030,0.014845039695501,-0.122297883033752) * FEATURE6_texOff(vec2(1,0));
res += mat4(-0.159525126218796,-0.153263166546822,0.125713601708412,-0.125606060028076,0.011946097016335,-0.056772522628307,0.111033380031586,-0.033704433590174,0.093949548900127,-0.221932351589203,-0.242817074060440,0.128825306892395,-0.003126105526462,0.164877220988274,0.038843266665936,0.121409632265568) * FEATURE6_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(-0.401902616024017,-0.125644147396088,0.126493155956268,0.014555254951119) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 3.200 * > OUTPUT.h LUMA.h 3.200 * > *
//!COMPONENTS 4
//!BIND FEATURE1
//!BIND FEATURE2
//!BIND FEATURE3
//!BIND FEATURE4
//!BIND FEATURE5
//!BIND FEATURE6
//!SAVE MODEL2
//!DESC [AiUpscale_Medium_4x_Photo] mapping 1_2

vec4 hook()
{
vec4 res = vec4(-0.055036544799805,-0.145507887005806,-0.018962718546391,-0.190905526280403);
res += mat4(-0.217804253101349,0.083252236247063,-0.044318534433842,-0.039013516157866,0.028717702254653,-0.009022383950651,-0.214170068502426,-0.049901001155376,0.095128506422043,-0.147684991359711,-0.006996151991189,-0.063266515731812,0.081418335437775,-0.057794995605946,0.028205199167132,0.032257769256830) * FEATURE1_texOff(vec2(-1,-1));
res += mat4(-0.030101466923952,0.152395233511925,0.023792373016477,0.174936532974243,0.180836245417595,-0.086982123553753,-0.166003078222275,0.111743882298470,0.092523545026779,-0.096059866249561,0.094325713813305,-0.025519372895360,-0.063335068523884,-0.004612887278199,-0.020258402451873,0.122934885323048) * FEATURE1_texOff(vec2(-1,0));
res += mat4(0.131375938653946,-0.026386074721813,0.087921105325222,0.077371485531330,0.086729057133198,0.031732045114040,-0.009327171370387,0.045980241149664,0.093526981770992,-0.016197409480810,0.091844394803047,-0.013269813731313,-0.004785255528986,-0.054379601031542,0.044718034565449,0.115448154509068) * FEATURE1_texOff(vec2(-1,1));
res += mat4(-0.080996312201023,0.001581496093422,-0.042790405452251,-0.110375165939331,-0.174130842089653,-0.044758934527636,-0.147995054721832,0.041747879236937,-0.200008794665337,0.102638795971870,0.183131471276283,0.121087498962879,0.023514419794083,0.008530424907804,0.132259830832481,-0.043089780956507) * FEATURE1_texOff(vec2(0,-1));
res += mat4(-0.030889764428139,0.054958760738373,-0.069772310554981,0.127344936132431,0.157785922288895,-0.013396012596786,-0.035240575671196,0.077114470303059,-0.167687490582466,0.166232243180275,0.117257475852966,0.125064834952354,-0.177254870533943,0.165634974837303,0.014578977599740,0.079944036900997) * FEATURE1_texOff(vec2(0,0));
res += mat4(0.131375551223755,-0.003667116630822,0.022836679592729,-0.022147823125124,0.221587985754013,-0.122682109475136,0.020999927073717,0.013141586445272,-0.133454129099846,0.155574649572372,0.135887011885643,0.002788101555780,-0.185304254293442,0.070315636694431,0.231257677078247,0.376630514860153) * FEATURE1_texOff(vec2(0,1));
res += mat4(-0.098966017365456,-0.070834495127201,-0.016568949446082,-0.053699493408203,0.134538665413857,-0.094605334103107,-0.141880914568901,0.132043629884720,0.066834151744843,-0.078106902539730,0.064558476209641,0.190697133541107,0.045883659273386,0.040919855237007,0.084692575037479,-0.000727032369468) * FEATURE1_texOff(vec2(1,-1));
res += mat4(-0.085505411028862,-0.033537987619638,0.136369571089745,0.023660331964493,0.252426683902740,-0.044878829270601,0.034658409655094,0.115550361573696,0.054779622703791,-0.197633519768715,0.054337617009878,-0.077021107077599,-0.127497464418411,0.097562499344349,-0.002334615914151,-0.125267103314400) * FEATURE1_texOff(vec2(1,0));
res += mat4(0.029493855312467,-0.046580974012613,0.008973982185125,-0.034022215753794,0.140277028083801,-0.086562730371952,0.020597686991096,0.186557784676552,0.124874733388424,-0.080662205815315,-0.076168976724148,0.026093989610672,-0.120859973132610,0.129442542791367,0.121530324220657,-0.203787222504616) * FEATURE1_texOff(vec2(1,1));
res += mat4(0.229250073432922,-0.122294709086418,0.081664085388184,-0.050909966230392,-0.028798250481486,0.089031174778938,-0.039296191185713,-0.194466099143028,-0.010812827385962,0.096915468573570,0.109005801379681,0.086797691881657,-0.125167369842529,0.020595693960786,0.008723974227905,-0.040243346244097) * FEATURE2_texOff(vec2(-1,-1));
res += mat4(-0.217562034726143,0.332150548696518,-0.013659428805113,0.156045109033585,-0.171153604984283,-0.118681579828262,-0.060176201164722,-0.003002591431141,-0.359279513359070,0.172162234783173,0.096044257283211,-0.066589713096619,0.034296028316021,-0.077107608318329,-0.061184048652649,-0.077509269118309) * FEATURE2_texOff(vec2(-1,0));
res += mat4(-0.037839792668819,-0.033706177026033,-0.102040886878967,-0.049360502511263,-0.111658617854118,0.095387168228626,-0.090660989284515,-0.046613164246082,-0.180299758911133,0.015763349831104,0.057194646447897,0.005229496862739,-0.009096379391849,-0.032381661236286,-0.043794959783554,0.039430040866137) * FEATURE2_texOff(vec2(-1,1));
res += mat4(-0.341846913099289,0.185489118099213,-0.453908056020737,0.216897308826447,0.166808530688286,0.205950483679771,-0.166779473423958,-0.106268674135208,0.433721989393234,-0.053069174289703,0.366847932338715,0.211026579141617,0.013413225300610,-0.080074071884155,-0.006009338889271,-0.110130108892918) * FEATURE2_texOff(vec2(0,-1));
res += mat4(0.300911784172058,-0.117946229875088,0.160556077957153,-0.130410984158516,0.242574989795685,0.005217039026320,-0.098723642528057,0.127316281199455,-0.141525864601135,0.108442671597004,0.283782422542572,0.130360916256905,-0.003474871162325,-0.159849345684052,-0.035127229988575,-0.116100117564201) * FEATURE2_texOff(vec2(0,0));
res += mat4(-0.007914249785244,-0.093473702669144,0.141479849815369,0.018065307289362,0.053645312786102,-0.061241578310728,0.154679059982300,-0.112532131373882,-0.041906498372555,0.076189972460270,-0.062561161816120,-0.182292804121971,-0.090102188289165,-0.081453166902065,0.021477730944753,-0.019860586151481) * FEATURE2_texOff(vec2(0,1));
res += mat4(0.143884479999542,-0.161399617791176,0.053627688437700,-0.022492166608572,-0.203973323106766,-0.033864352852106,0.039941087365150,0.265253961086273,0.296876937150955,0.013855502940714,0.198909521102905,-0.152204781770706,-0.048710584640503,0.020359061658382,-0.145509451627731,-0.019866310060024) * FEATURE2_texOff(vec2(1,-1));
res += mat4(-0.089721389114857,0.047306645661592,-0.135973423719406,0.023570591583848,0.412712126970291,-0.251775234937668,0.027305282652378,0.195727497339249,0.105732269585133,0.018664699047804,-0.034011483192444,-0.003418161999434,-0.097260259091854,0.019644012674689,-0.092474319040775,-0.164851278066635) * FEATURE2_texOff(vec2(1,0));
res += mat4(0.136675775051117,0.050546459853649,-0.065231621265411,-0.074071861803532,-0.210420861840248,0.081197984516621,0.385785609483719,-0.194484278559685,0.005144258495420,0.041557397693396,0.032538425177336,-0.049013111740351,-0.179639786481857,0.067636273801327,-0.127167761325836,0.005829984787852) * FEATURE2_texOff(vec2(1,1));
res += mat4(0.096713557839394,0.029965354129672,-0.280388742685318,-0.104389384388924,-0.071592271327972,0.143659338355064,-0.089640378952026,-0.140411794185638,-0.187796786427498,0.015526060946286,0.165601745247841,-0.120925292372704,-0.065454594790936,0.043341565877199,0.116606287658215,-0.034634660929441) * FEATURE3_texOff(vec2(-1,-1));
res += mat4(0.213670581579208,-0.188702136278152,-0.107081517577171,0.060251291841269,-0.206118524074554,0.146161064505577,-0.026035675778985,0.195352524518967,-0.024668900296092,-0.109224267303944,0.217402786016464,-0.125832453370094,0.014207437634468,0.005484650377184,0.084221445024014,-0.021654184907675) * FEATURE3_texOff(vec2(-1,0));
res += mat4(0.029185375198722,-0.043297618627548,0.034018587321043,-0.037608046084642,-0.016191203147173,-0.020582087337971,-0.134455680847168,0.380309998989105,-0.087582305073738,-0.051425494253635,0.013583135791123,0.018404746428132,-0.021295575425029,-0.177610978484154,0.184355914592743,0.255817681550980) * FEATURE3_texOff(vec2(-1,1));
res += mat4(0.172784656286240,0.166625872254372,-0.040808971971273,0.041118208318949,-0.059293828904629,-0.088155992329121,-0.055589564144611,0.070446744561195,-0.163678705692291,-0.163960367441177,0.000277371989796,-0.074436120688915,0.003996696323156,0.035026408731937,-0.125253960490227,-0.140787079930305) * FEATURE3_texOff(vec2(0,-1));
res += mat4(-0.117450110614300,-0.112016595900059,-0.286652326583862,0.157027795910835,0.335111111402512,-0.011227793991566,-0.129382833838463,0.203155368566513,0.001330146566033,-0.102833710610867,-0.246101006865501,0.160210296511650,0.031766142696142,-0.004967551212758,-0.180123999714851,0.074314229190350) * FEATURE3_texOff(vec2(0,0));
res += mat4(0.015200822614133,0.038093507289886,-0.199166193604469,-0.062803864479065,0.212539955973625,0.013798905536532,0.046025011688471,0.151962175965309,-0.007502583321184,0.035782754421234,-0.218673899769783,0.218767091631889,0.027739705517888,-0.054564576596022,0.139688715338707,0.273940980434418) * FEATURE3_texOff(vec2(0,1));
res += mat4(-0.016381645575166,-0.122199542820454,-0.051737874746323,0.043593738228083,-0.079542368650436,-0.081620723009109,-0.062907420098782,-0.073997937142849,-0.096221484243870,0.151392579078674,-0.023018905892968,-0.283037394285202,0.029834212735295,0.034227855503559,0.001465223380364,-0.064071297645569) * FEATURE3_texOff(vec2(1,-1));
res += mat4(-0.224173620343208,0.060034800320864,-0.057290170341730,-0.044779073446989,-0.008886098861694,0.123518660664558,0.025816436856985,-0.377446234226227,0.005950910039246,0.152168005704880,0.152946457266808,-0.267759948968887,-0.001581521355547,-0.079979412257671,0.156263843178749,-0.016313714906573) * FEATURE3_texOff(vec2(1,0));
res += mat4(0.011442751623690,-0.025777792558074,-0.038513876497746,0.044972300529480,0.059051398187876,0.049673315137625,-0.124289609491825,-0.111626192927361,0.031991966068745,0.028828723356128,0.193073600530624,-0.040864497423172,0.008325863629580,0.115664862096310,0.018846200779080,0.164831101894379) * FEATURE3_texOff(vec2(1,1));
res += mat4(0.113834291696548,-0.049717754125595,0.195282816886902,-0.186460450291634,-0.113642178475857,0.165515378117561,-0.203324422240257,0.067782670259476,0.314037501811981,-0.125656142830849,0.282363086938858,0.146436586976051,-0.024475622922182,-0.137131810188293,-0.071553580462933,-0.144580125808716) * FEATURE4_texOff(vec2(-1,-1));
res += mat4(0.024527424946427,-0.013741893693805,-0.012648382224143,0.081535816192627,0.070148937404156,-0.107126377522945,0.120833724737167,-0.033758763223886,-0.203262791037560,0.073637343943119,-0.287858963012695,0.112357676029205,-0.131029263138771,0.132673949003220,-0.247750103473663,0.071504309773445) * FEATURE4_texOff(vec2(-1,0));
res += mat4(0.141116008162498,0.084357857704163,0.049695316702127,-0.039909411221743,-0.166748896241188,0.053035914897919,-0.032282467931509,0.011433661915362,0.280063003301620,0.180309206247330,0.014974078163505,-0.184575527906418,-0.072049476206303,-0.066022232174873,-0.057427644729614,-0.044883377850056) * FEATURE4_texOff(vec2(-1,1));
res += mat4(0.064660929143429,-0.255042463541031,-0.024259669706225,0.042215056717396,-0.000510605401359,0.132783904671669,-0.299273818731308,-0.027115769684315,-0.013540028594434,-0.044379677623510,0.089610256254673,-0.030560236424208,-0.081983618438244,-0.269888609647751,0.155220910906792,-0.172063991427422) * FEATURE4_texOff(vec2(0,-1));
res += mat4(-0.179007768630981,0.003769384697080,-0.340494513511658,0.224327251315117,0.090608872473240,0.088007487356663,-0.009477566927671,0.015812087804079,-0.252872854471207,0.162569344043732,-0.143085166811943,0.230350613594055,-0.084373593330383,-0.007485927548259,-0.134069547057152,-0.078005485236645) * FEATURE4_texOff(vec2(0,0));
res += mat4(0.058766517788172,-0.126393705606461,0.086521737277508,-0.049717430025339,0.035828221589327,0.031955860555172,0.058816857635975,-0.022775115445256,0.074114166200161,-0.110931530594826,-0.050411626696587,-0.010571034625173,-0.083446383476257,0.014258521609008,-0.005796330980957,0.037184812128544) * FEATURE4_texOff(vec2(0,1));
res += mat4(0.128342658281326,-0.045568093657494,0.059621557593346,-0.063157595694065,-0.240355506539345,-0.015217143110931,-0.266363799571991,-0.022860551252961,-0.145728886127472,0.000387711974327,-0.044207841157913,0.053902640938759,0.018523072823882,-0.107006259262562,-0.051619492471218,0.020361902192235) * FEATURE4_texOff(vec2(1,-1));
res += mat4(0.063423044979572,-0.036299843341112,-0.065663039684296,-0.103010371327400,0.188428312540054,-0.102236762642860,0.133646175265312,0.091575637459755,0.146154537796974,-0.181598737835884,0.162002652883530,-0.398681402206421,0.030647534877062,0.029090572148561,-0.014522413723171,-0.082341782748699) * FEATURE4_texOff(vec2(1,0));
res += mat4(0.094849668443203,0.036976084113121,-0.070000253617764,-0.093777969479561,-0.148036673665047,0.028745960444212,0.070995934307575,0.085920050740242,0.020671574398875,-0.042092572897673,0.036012616008520,0.051221687346697,-0.020423693582416,0.004385030828416,0.008419384248555,0.126221269369125) * FEATURE4_texOff(vec2(1,1));
res += mat4(0.436974972486496,0.090945415198803,-0.116870962083340,-0.074138902127743,0.070074923336506,-0.007442273665220,0.063178963959217,-0.017139736562967,-0.080265067517757,0.296125859022141,-0.132869482040405,-0.050488863140345,0.011114600114524,0.206873580813408,-0.116155341267586,-0.100852340459824) * FEATURE5_texOff(vec2(-1,-1));
res += mat4(0.445790648460388,-0.013765272684395,-0.017881453037262,-0.177648186683655,0.015341394580901,-0.057606033980846,-0.150441735982895,-0.253170162439346,-0.054943259805441,0.360532552003860,-0.043363370001316,0.073332920670509,-0.284373462200165,0.289272218942642,-0.240868911147118,0.153479546308517) * FEATURE5_texOff(vec2(-1,0));
res += mat4(0.339480996131897,-0.029417322948575,0.052009079605341,0.034640569239855,-0.010602174326777,0.049447741359472,-0.005656265653670,-0.084126994013786,0.175985470414162,0.015216257423162,0.180685088038445,-0.066580146551132,-0.205682814121246,0.008481402881444,0.114569522440434,-0.055235557258129) * FEATURE5_texOff(vec2(-1,1));
res += mat4(0.332708656787872,-0.011027661152184,-0.079925261437893,-0.133484676480293,0.067387245595455,-0.332236200571060,0.127663806080818,0.041423764079809,0.038243014365435,-0.054952353239059,0.058356411755085,-0.062220387160778,-0.099770687520504,-0.009019094519317,-0.192858695983887,-0.004622891545296) * FEATURE5_texOff(vec2(0,-1));
res += mat4(0.531278610229492,-0.182283580303192,0.226874992251396,-0.305315107107162,-0.025185808539391,-0.000869488227181,0.020671121776104,0.045633267611265,0.437354743480682,-0.583107352256775,0.300571054220200,-0.527088642120361,0.264859169721603,-0.287510514259338,0.179413959383965,-0.056645944714546) * FEATURE5_texOff(vec2(0,0));
res += mat4(0.288323819637299,-0.112943790853024,0.050061695277691,0.089742086827755,-0.092257194221020,0.031528182327747,0.053664479404688,0.109525635838509,-0.026442456990480,-0.009938207454979,0.086681425571442,0.195325553417206,-0.000717382295989,-0.133040398359299,0.109642483294010,0.222211524844170) * FEATURE5_texOff(vec2(0,1));
res += mat4(0.199869528412819,-0.247972592711449,-0.002674258779734,-0.073640778660774,0.012427973560989,0.032808221876621,0.028717622160912,-0.165984570980072,-0.020390633493662,-0.143024668097496,-0.123230777680874,0.084213741123676,0.055115308612585,0.010694267228246,-0.053030088543892,0.053996924310923) * FEATURE5_texOff(vec2(1,-1));
res += mat4(0.386631995439529,-0.050782602280378,0.157700404524803,-0.078241840004921,0.044243842363358,0.023852592334151,-0.015951249748468,-0.037816219031811,-0.117495805025101,0.401019483804703,-0.235202148556709,0.238231852650642,-0.031264871358871,-0.044993560761213,-0.059008773416281,-0.186606511473656) * FEATURE5_texOff(vec2(1,0));
res += mat4(0.175092503428459,-0.239111706614494,0.074523426592350,0.157286584377289,-0.042967528104782,-0.015483190305531,-0.031950920820236,0.027227165177464,-0.099793002009392,0.114626914262772,-0.086856149137020,0.222674608230591,0.015454036183655,0.113597035408020,-0.118435174226761,-0.123483441770077) * FEATURE5_texOff(vec2(1,1));
res += mat4(0.138819545507431,-0.031872168183327,0.106156483292580,0.099853716790676,0.106569632887840,-0.009823216125369,0.019235845655203,-0.013596177101135,0.053262997418642,-0.077260173857212,0.093418344855309,-0.000419749674620,0.155704006552696,-0.200318381190300,0.044245839118958,-0.077469885349274) * FEATURE6_texOff(vec2(-1,-1));
res += mat4(-0.033822257071733,-0.086628936231136,0.252698749303818,-0.080390825867653,0.203150615096092,-0.137735396623611,-0.169439658522606,-0.013120274059474,-0.001880351803266,0.129724472761154,-0.126576498150826,0.092850320041180,0.111738651990891,-0.264345347881317,0.156842738389969,-0.069799572229385) * FEATURE6_texOff(vec2(-1,0));
res += mat4(-0.001688890508376,0.067511908710003,-0.008144352585077,-0.067687638103962,0.136055603623390,-0.006160169374198,0.045045193284750,-0.263724625110626,-0.099739097058773,0.023724744096398,-0.137071803212166,0.048073552548885,0.174557209014893,-0.030100682750344,0.214198708534241,-0.057215213775635) * FEATURE6_texOff(vec2(-1,1));
res += mat4(0.109401047229767,0.060332287102938,-0.085983678698540,-0.000959245313425,-0.011614824645221,-0.001078655710444,-0.048800349235535,-0.065732754766941,0.231376916170120,-0.011279212310910,0.200654447078705,-0.109649404883385,-0.014234934933484,-0.037257939577103,-0.079406857490540,0.139206901192665) * FEATURE6_texOff(vec2(0,-1));
res += mat4(-0.002468089805916,-0.030248360708356,0.069259881973267,0.030340569093823,0.113161705434322,-0.118466556072235,0.133228003978729,-0.035155728459358,-0.281125158071518,0.101306006312370,-0.257046312093735,0.041127491742373,-0.313625544309616,-0.073550514876842,-0.173608824610710,0.235404983162880) * FEATURE6_texOff(vec2(0,0));
res += mat4(-0.071505405008793,0.151323959231377,-0.068058155477047,-0.071398414671421,0.091190166771412,-0.106146819889545,0.185773029923439,0.023451372981071,0.240053996443748,-0.092048533260822,0.028916940093040,-0.055239018052816,-0.018465982750058,0.051616188138723,-0.030692471191287,-0.056996431201696) * FEATURE6_texOff(vec2(0,1));
res += mat4(-0.052365578711033,-0.116762936115265,0.154613703489304,0.087304309010506,0.127258658409119,0.010374104604125,-0.170986384153366,-0.083853043615818,-0.188977167010307,0.074710942804813,-0.100663021206856,0.120027199387550,0.012787650339305,0.233996197581291,-0.087227843701839,-0.068100288510323) * FEATURE6_texOff(vec2(1,-1));
res += mat4(-0.039180707186460,-0.050744708627462,0.011371418833733,0.043301992118359,0.085946746170521,0.070353016257286,-0.012852152809501,-0.127351418137550,0.129858210682869,-0.201148360967636,0.286840260028839,-0.242652699351311,0.059641513973475,-0.069012373685837,0.024114185944200,0.028209310024977) * FEATURE6_texOff(vec2(1,0));
res += mat4(0.048106621950865,-0.034008812159300,-0.152421116828918,0.035007171332836,0.171008214354515,0.094633586704731,0.167740479111671,-0.063480623066425,-0.010351245291531,0.011856054887176,-0.085182718932629,0.193749994039536,0.063359737396240,0.040650080889463,-0.050155568867922,0.030711140483618) * FEATURE6_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(-0.007100196089596,0.427864372730255,-0.108227819204330,0.438873380422592) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 3.200 * > OUTPUT.h LUMA.h 3.200 * > *
//!COMPONENTS 4
//!BIND FEATURE1
//!BIND FEATURE2
//!BIND FEATURE3
//!BIND FEATURE4
//!BIND FEATURE5
//!BIND FEATURE6
//!SAVE MODEL3
//!DESC [AiUpscale_Medium_4x_Photo] mapping 1_3

vec4 hook()
{
vec4 res = vec4(0.092650480568409,0.062751114368439,-0.025289596989751,-0.049975492060184);
res += mat4(-0.046640042215586,-0.144925937056541,0.031213210895658,-0.037751644849777,-0.128111258149147,-0.090624295175076,-0.046265497803688,0.000876508129295,-0.005629594437778,0.007795002777129,0.006287934724241,0.002355461940169,0.078694239258766,0.046567596495152,-0.016808340325952,0.017234351485968) * FEATURE1_texOff(vec2(-1,-1));
res += mat4(0.062873519957066,0.013311903923750,-0.055554483085871,0.034978762269020,-0.063021332025528,0.043879531323910,0.003338424023241,0.053706165403128,-0.008218928240240,0.023291584104300,0.035086058080196,0.047918267548084,-0.022835383191705,0.003252369584516,-0.047481413930655,-0.092403590679169) * FEATURE1_texOff(vec2(-1,0));
res += mat4(-0.109967514872551,-0.019361065700650,-0.196561127901077,-0.013087404891849,0.068395689129829,0.073583498597145,0.007700144778937,0.038395997136831,0.004992890637368,0.007007973734289,-0.071747876703739,0.104433856904507,0.112185403704643,-0.009376073256135,0.052597898989916,0.067137911915779) * FEATURE1_texOff(vec2(-1,1));
res += mat4(-0.082143463194370,-0.092303551733494,-0.074133120477200,-0.093009419739246,-0.193913280963898,0.079564422369003,0.184005647897720,-0.149600103497505,0.002757576294243,0.081900194287300,0.047388065606356,-0.057786107063293,-0.004012597724795,0.019090687856078,-0.058942984789610,0.069130517542362) * FEATURE1_texOff(vec2(0,-1));
res += mat4(0.049386691302061,0.015196274034679,0.040543306618929,-0.157231852412224,-0.080932892858982,0.113603308796883,-0.133135437965393,0.079182870686054,-0.037035867571831,0.090576969087124,0.079784490168095,-0.105690628290176,-0.148110598325729,-0.156978607177734,0.067214675247669,-0.021504387259483) * FEATURE1_texOff(vec2(0,0));
res += mat4(-0.102098092436790,-0.022094525396824,-0.173070296645164,0.059882603585720,0.107514344155788,0.326046437025070,-0.099057339131832,-0.161224007606506,-0.016456030309200,0.082561656832695,0.045383825898170,-0.048088535666466,0.025579024106264,-0.097041778266430,0.179790824651718,0.064090244472027) * FEATURE1_texOff(vec2(0,1));
res += mat4(0.035791609436274,-0.019273074343801,-0.055209346115589,0.059668198227882,-0.001552203670144,0.107466802000999,0.021347159519792,-0.022365506738424,-0.162722140550613,-0.121754303574562,0.236382246017456,-0.018957335501909,0.033763773739338,0.063136801123619,0.014440210536122,-0.024332525208592) * FEATURE1_texOff(vec2(1,-1));
res += mat4(0.121089108288288,-0.038893867284060,-0.042428612709045,-0.068163551390171,0.098606497049332,0.241089895367622,-0.102641478180885,0.036420319229364,-0.220465376973152,-0.062035147100687,-0.151602953672409,-0.023616090416908,-0.031271886080503,-0.145247355103493,-0.062750034034252,-0.013489471748471) * FEATURE1_texOff(vec2(1,0));
res += mat4(0.088783144950867,0.037554387003183,-0.028042430058122,0.008463446050882,-0.015793666243553,0.127774238586426,0.044385097920895,-0.020999841392040,-0.182116627693176,-0.134372845292091,0.107121571898460,-0.087311759591103,0.120279312133789,-0.135912701487541,0.089439198374748,-0.008155826479197) * FEATURE1_texOff(vec2(1,1));
res += mat4(-0.011180335655808,0.042589515447617,-0.097301766276360,0.028397984802723,-0.074225820600986,-0.079494461417198,0.118959672749043,-0.045150786638260,0.057894162833691,0.015767915174365,0.228669881820679,-0.034250989556313,0.013549625873566,0.000970124849118,-0.031934149563313,-0.038931988179684) * FEATURE2_texOff(vec2(-1,-1));
res += mat4(-0.100123077630997,-0.040179260075092,0.126892656087875,-0.137384533882141,0.029566017910838,-0.129755720496178,-0.057896077632904,-0.034612949937582,-0.257908135652542,-0.153238728642464,-0.119679808616638,-0.012650405988097,-0.180997371673584,0.017056820914149,0.162954315543175,0.012550573796034) * FEATURE2_texOff(vec2(-1,0));
res += mat4(0.060174986720085,-0.036568783223629,-0.005403938703239,0.138257086277008,-0.061583284288645,-0.074713118374348,-0.021253829821944,-0.115790985524654,-0.097766906023026,-0.037585265934467,0.027398422360420,-0.122611865401268,-0.224552273750305,-0.017551707103848,-0.053222082555294,0.004080525599420) * FEATURE2_texOff(vec2(-1,1));
res += mat4(-0.078899338841438,-0.124211959540844,0.246365040540695,-0.117530532181263,-0.015615896321833,-0.136450201272964,-0.083984293043613,0.003250038716942,0.097336202859879,0.278485566377640,0.069659687578678,0.071574658155441,0.006726287305355,-0.032000381499529,0.026617942377925,-0.007623031269759) * FEATURE2_texOff(vec2(0,-1));
res += mat4(0.086090356111526,0.198675900697708,-0.318906635046005,0.333680272102356,0.224680840969086,0.166009873151779,-0.118455864489079,0.353301316499710,0.000798628199846,-0.036165282130241,0.019883949309587,0.155493736267090,-0.024800704792142,-0.104229331016541,0.015876814723015,-0.022541539743543) * FEATURE2_texOff(vec2(0,0));
res += mat4(0.142347350716591,0.028405850753188,-0.083531565964222,0.040039107203484,-0.139908671379089,-0.141543865203857,0.243708267807961,-0.072806812822819,0.003126223105937,-0.008914853446186,-0.147055223584175,-0.142607942223549,-0.000217440101551,0.011019264347851,0.062376484274864,-0.036084149032831) * FEATURE2_texOff(vec2(0,1));
res += mat4(0.006285918876529,0.085248932242393,0.125926807522774,0.024558704346418,-0.092477515339851,-0.339500784873962,0.168860256671906,0.089734658598900,-0.041918285191059,0.139296367764473,0.085188329219818,0.107648044824600,0.206877380609512,0.085195004940033,-0.004718896001577,-0.023467661812901) * FEATURE2_texOff(vec2(1,-1));
res += mat4(-0.174190402030945,-0.182439878582954,0.086505137383938,-0.349882334470749,-0.017232526093721,0.263541430234909,-0.020822513848543,0.150085255503654,-0.214224502444267,0.098900668323040,-0.055700935423374,-0.011298757977784,0.246137216687202,0.015380052849650,0.010391999967396,-0.118485048413277) * FEATURE2_texOff(vec2(1,0));
res += mat4(-0.054216925054789,-0.063925303518772,-0.231090530753136,0.044636581093073,-0.020884400233626,0.132199883460999,0.215063542127609,0.062677867710590,-0.085427410900593,0.057126604020596,0.019558157771826,-0.009142525494099,0.110321797430515,0.029927944764495,-0.052608489990234,-0.065295666456223) * FEATURE2_texOff(vec2(1,1));
res += mat4(0.090381391346455,-0.030699694529176,-0.117691129446030,0.151264443993568,-0.071228452026844,0.015122504904866,-0.016956005245447,-0.075091205537319,0.008264473639429,0.138420164585114,0.049751486629248,0.189540505409241,0.001592088839971,0.063603445887566,-0.028645625337958,0.147424414753914) * FEATURE3_texOff(vec2(-1,-1));
res += mat4(0.000279162690276,-0.012008238583803,0.013063765130937,0.088480308651924,0.073996834456921,0.057350270450115,-0.069473400712013,-0.001181489322335,-0.141162887215614,0.124003015458584,-0.042351149022579,0.396251469850540,-0.030695902183652,-0.006888014730066,0.109329245984554,0.300882697105408) * FEATURE3_texOff(vec2(-1,0));
res += mat4(-0.050455119460821,0.201714575290680,0.117900550365448,-0.094698689877987,0.014729161746800,0.076193511486053,-0.054176237434149,0.204357713460922,-0.324168592691422,0.016525883227587,-0.054708376526833,0.340848684310913,-0.300976246595383,0.005188397131860,0.034120913594961,0.103621877729893) * FEATURE3_texOff(vec2(-1,1));
res += mat4(0.107608035206795,-0.006357128266245,-0.087763197720051,-0.027512827888131,-0.024279737845063,-0.256067156791687,0.051444765180349,0.112234607338905,0.219903275370598,0.146758660674095,-0.060018941760063,-0.059203360229731,0.106265172362328,0.000372441922082,0.073932476341724,0.030157852917910) * FEATURE3_texOff(vec2(0,-1));
res += mat4(0.106645904481411,-0.288006603717804,0.143008112907410,-0.244413316249847,0.135333865880966,0.086315184831619,-0.204119995236397,0.152797788381577,-0.043094497174025,-0.021373493596911,0.243800505995750,-0.037392649799585,0.057701341807842,0.013753957115114,0.206597641110420,-0.005971735808998) * FEATURE3_texOff(vec2(0,0));
res += mat4(0.184045150876045,-0.068149521946907,-0.034592505544424,-0.149512201547623,0.071175292134285,0.119769535958767,0.030692525207996,-0.089597441256046,0.067287519574165,-0.017051247879863,-0.019468810409307,-0.188980892300606,-0.206458330154419,0.009744450449944,-0.414698928594589,0.018685087561607) * FEATURE3_texOff(vec2(0,1));
res += mat4(-0.097287788987160,-0.130299761891365,-0.022826293483377,-0.046644620597363,-0.061762586236000,-0.090132862329483,-0.048388767987490,-0.060145113617182,0.144282579421997,0.153396651148796,0.017857203260064,0.156773298978806,0.105727396905422,0.026669355109334,0.018037049099803,0.062940835952759) * FEATURE3_texOff(vec2(1,-1));
res += mat4(-0.137576878070831,-0.244903117418289,0.027040930464864,-0.181613728404045,-0.071937642991543,-0.145902499556541,-0.081437274813652,-0.258229136466980,0.114605739712715,0.076908171176910,-0.036023680120707,0.133049800992012,0.028588609769940,0.080300629138947,0.043311007320881,-0.110379889607430) * FEATURE3_texOff(vec2(1,0));
res += mat4(-0.136270925402641,-0.199270173907280,0.011690975166857,-0.096916764974594,-0.052672881633043,0.000503040908370,-0.025771219283342,0.006481803022325,-0.024192716926336,0.153948813676834,-0.007380714640021,-0.069946378469467,-0.145065918564796,0.051923409104347,0.050529044121504,-0.045732524245977) * FEATURE3_texOff(vec2(1,1));
res += mat4(-0.040594059973955,0.156691893935204,0.128726169466972,-0.067708253860474,-0.120073445141315,-0.206841737031937,-0.026549018919468,0.024122582748532,0.085274308919907,0.165406674146652,-0.064567774534225,0.256165981292725,0.078410744667053,-0.097693033516407,0.018142640590668,-0.011345295235515) * FEATURE4_texOff(vec2(-1,-1));
res += mat4(-0.225019752979279,-0.064915880560875,0.011577349156141,-0.000558781786822,0.276978254318237,0.204347610473633,-0.233526840806007,0.363175600767136,-0.281721889972687,-0.107960462570190,0.313003540039063,-0.369920134544373,0.052276704460382,-0.052147023379803,-0.070868067443371,-0.191874414682388) * FEATURE4_texOff(vec2(-1,0));
res += mat4(-0.268444389104843,0.094155400991440,-0.052378248423338,0.292186528444290,-0.059376791119576,0.024320820346475,0.197312384843826,-0.298602193593979,-0.083922542631626,-0.017447033897042,-0.269211888313293,0.140860050916672,-0.027954913675785,-0.100624248385429,0.219528138637543,-0.097000673413277) * FEATURE4_texOff(vec2(-1,1));
res += mat4(0.081347547471523,-0.088024936616421,0.099934674799442,-0.153916239738464,-0.147614315152168,-0.188341051340103,0.101759754121304,-0.041678380221128,0.161612987518311,0.035464268177748,0.091773129999638,-0.013478682376444,-0.140628948807716,-0.108648382127285,0.036011766642332,-0.025876181200147) * FEATURE4_texOff(vec2(0,-1));
res += mat4(-0.327944815158844,-0.337332069873810,0.220300942659378,-0.356966376304626,0.098877027630806,-0.001317073591053,-0.346848577260971,0.251975685358047,-0.078594721853733,0.083118543028831,0.201882943511009,-0.002891159150749,0.075208477675915,-0.052233017981052,-0.250369250774384,0.044563036412001) * FEATURE4_texOff(vec2(0,0));
res += mat4(-0.141987994313240,-0.166320726275444,-0.552649974822998,0.149611324071884,0.042374994605780,0.024922337383032,0.229060068726540,-0.119927935302258,-0.021051581948996,0.039036475121975,-0.207800075411797,-0.043268680572510,-0.128358572721481,-0.028632111847401,0.193953007459641,-0.071335919201374) * FEATURE4_texOff(vec2(0,1));
res += mat4(0.158845633268356,0.140482053160667,0.019821980968118,0.066144488751888,-0.146968603134155,-0.176523402333260,0.089323110878468,0.013175160624087,-0.164291605353355,-0.043739449232817,0.109105624258518,-0.125347569584846,0.097101345658302,-0.135226383805275,0.031068589538336,-0.032659381628036) * FEATURE4_texOff(vec2(1,-1));
res += mat4(0.319707214832306,0.066265344619751,0.054014731198549,0.039451885968447,0.085712574422359,0.167072802782059,-0.445096820592880,0.306840866804123,0.255925178527832,-0.079478755593300,-0.257995724678040,0.225932046771049,0.195394203066826,0.029316425323486,0.067920051515102,-0.084016256034374) * FEATURE4_texOff(vec2(1,0));
res += mat4(0.172412157058716,0.231439530849457,-0.085418112576008,0.199624836444855,-0.159479245543480,-0.069133721292019,0.249399498105049,-0.227763056755066,0.200555905699730,-0.100480601191521,0.088813096284866,-0.031286802142859,0.178189232945442,-0.047937009483576,0.005239688791335,0.099843867123127) * FEATURE4_texOff(vec2(1,1));
res += mat4(0.099231012165546,0.107591286301613,-0.356713682413101,0.203154399991035,0.028618698939681,0.049619376659393,-0.065960213541985,0.016712289303541,0.057887181639671,0.050603896379471,-0.024278467521071,0.055782727897167,0.088480263948441,0.052976965904236,0.147159352898598,0.194752201437950) * FEATURE5_texOff(vec2(-1,-1));
res += mat4(0.179675564169884,0.166100680828094,-0.036132041364908,0.060553576797247,-0.128399714827538,0.022165898233652,-0.001472348929383,0.054954238235950,0.066145293414593,0.034748200327158,0.026741895824671,-0.059575207531452,-0.000575674057472,-0.237473964691162,0.163415953516960,-0.120167233049870) * FEATURE5_texOff(vec2(-1,0));
res += mat4(0.238497123122215,0.055607166141272,0.200245842337608,-0.072745226323605,-0.020664675161242,0.006394061259925,-0.001840840792283,0.004274550359696,-0.097317881882191,0.092430621385574,0.062873251736164,-0.055432539433241,-0.103467427194118,-0.060637183487415,-0.163602203130722,-0.090325832366943) * FEATURE5_texOff(vec2(-1,1));
res += mat4(-0.034898124635220,0.188600271940231,-0.253905594348907,0.255318433046341,0.046386513859034,0.047014139592648,0.014052132144570,-0.026997579261661,-0.061325594782829,0.129100412130356,-0.117231838405132,0.117497995495796,-0.034644749015570,-0.039906404912472,0.026902416720986,-0.072078660130501) * FEATURE5_texOff(vec2(0,-1));
res += mat4(0.366449683904648,0.290018320083618,-0.056346207857132,0.242697685956955,-0.005416604224592,-0.055834181606770,0.188373729586601,0.028499223291874,0.243674352765083,0.382590562105179,-0.347507148981094,0.341125130653381,0.136121660470963,0.042505171149969,-0.248509600758553,0.285382688045502) * FEATURE5_texOff(vec2(0,0));
res += mat4(0.194747582077980,0.171352818608284,0.471721261739731,-0.087793529033661,0.141484379768372,-0.036208204925060,0.025272810831666,0.041602391749620,-0.004943611100316,0.011927132494748,0.557513833045959,-0.225569501519203,0.078045390546322,0.107404910027981,0.172642141580582,-0.087428145110607) * FEATURE5_texOff(vec2(0,1));
res += mat4(-0.068958714604378,0.136786028742790,-0.374144673347473,0.250110745429993,-0.055415730923414,0.014912286773324,0.077489055693150,-0.123941496014595,-0.136729940772057,-0.039958193898201,0.004759825766087,-0.189674958586693,0.050504520535469,0.076117150485516,-0.018853327259421,0.107038117945194) * FEATURE5_texOff(vec2(1,-1));
res += mat4(0.003303666599095,0.183315306901932,-0.161767333745956,0.305921912193298,0.055691372603178,-0.089089356362820,-0.036342866718769,-0.076457954943180,-0.417310029268265,-0.187583476305008,-0.040537670254707,-0.160973027348518,0.071453325450420,-0.108548365533352,0.037717346101999,-0.129120051860809) * FEATURE5_texOff(vec2(1,0));
res += mat4(0.210001394152641,0.155060723423958,0.325386971235275,0.008003685623407,0.020516125485301,-0.023391168564558,0.067807838320732,-0.062790356576443,-0.126897051930428,0.002081777900457,0.057098206132650,-0.087704770267010,0.084844894707203,-0.054579235613346,-0.030112933367491,-0.109794065356255) * FEATURE5_texOff(vec2(1,1));
res += mat4(-0.045708790421486,0.042489465326071,0.040680084377527,-0.161274358630180,0.071526363492012,0.109728455543518,-0.005730534438044,0.052017230540514,0.070232063531876,0.200500145554543,0.012925037182868,0.039281368255615,-0.004100095015019,0.100966520607471,-0.026819748803973,0.089338146150112) * FEATURE6_texOff(vec2(-1,-1));
res += mat4(-0.183193609118462,0.099784135818481,-0.064750373363495,0.031735159456730,-0.015024455264211,0.026434196159244,0.028705252334476,0.085726104676723,0.003529308596626,-0.149501159787178,0.041894000023603,-0.124872282147408,-0.147212594747543,0.007957636378706,0.031553592532873,0.159408375620842) * FEATURE6_texOff(vec2(-1,0));
res += mat4(-0.026564480736852,0.057916074991226,-0.054077092558146,0.138668283820152,-0.169329121708870,0.113754086196423,-0.177585884928703,0.188667118549347,0.062149465084076,0.135156899690628,-0.113163024187088,0.075356468558311,-0.080455049872398,0.038737647235394,-0.057209137827158,0.251872122287750) * FEATURE6_texOff(vec2(-1,1));
res += mat4(0.212189748883247,-0.085826121270657,0.059621952474117,0.032901782542467,0.155567482113838,0.095506653189659,-0.047387443482876,0.009387609548867,0.024486005306244,0.002131508896127,-0.017269795760512,0.071717604994774,0.067872360348701,0.019489197060466,0.198466107249260,-0.113711372017860) * FEATURE6_texOff(vec2(0,-1));
res += mat4(-0.127778351306915,-0.012411021627486,0.120524898171425,-0.115334622561932,0.136581510305405,0.112096376717091,0.070336550474167,0.216851934790611,-0.217711314558983,-0.328508883714676,0.328045427799225,-0.203598693013191,-0.294666141271591,-0.157535031437874,0.181030362844467,-0.326680094003677) * FEATURE6_texOff(vec2(0,0));
res += mat4(-0.025949571281672,-0.025647191330791,-0.241461694240570,0.138912826776505,0.043796710669994,0.167887121438980,-0.094596996903419,0.249039396643639,0.076532520353794,0.032389890402555,-0.257574021816254,0.091178379952908,-0.212358430027962,-0.103286959230900,-0.382499933242798,-0.016945511102676) * FEATURE6_texOff(vec2(0,1));
res += mat4(0.050613190978765,-0.018283180892467,-0.002007942413911,0.021764110773802,0.031600173562765,0.044083017855883,0.009136190637946,-0.048060882836580,0.011516107246280,-0.019961988553405,-0.019117090851068,-0.035925742238760,0.151905849575996,-0.052988946437836,0.044167347252369,0.076330393552780) * FEATURE6_texOff(vec2(1,-1));
res += mat4(-0.033163424581289,0.156853675842285,0.044638823717833,-0.119918286800385,0.087320424616337,-0.034154392778873,0.035758357495070,0.083041146397591,0.168650150299072,0.238917589187622,-0.166392669081688,0.119403645396233,0.134462162852287,0.079259276390076,0.039386566728354,0.136627748608589) * FEATURE6_texOff(vec2(1,0));
res += mat4(-0.026482395827770,0.029804598540068,-0.028398679569364,0.103627339005470,-0.019986439496279,0.070348203182220,-0.053664956241846,0.110374718904495,-0.026168748736382,0.003555787727237,0.078215003013611,0.014831361360848,0.049812428653240,0.101155996322632,-0.092998504638672,-0.030836284160614) * FEATURE6_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(0.064131930470467,-0.017698775976896,-0.206717297434807,-0.004078747238964) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 3.200 * > OUTPUT.h LUMA.h 3.200 * > *
//!COMPONENTS 4
//!BIND FEATURE1
//!BIND FEATURE2
//!BIND FEATURE3
//!BIND FEATURE4
//!BIND FEATURE5
//!BIND FEATURE6
//!SAVE MODEL4
//!DESC [AiUpscale_Medium_4x_Photo] mapping 1_4

vec4 hook()
{
vec4 res = vec4(-0.574407875537872,-0.101086519658566,0.033154740929604,-0.474482238292694);
res += mat4(-0.001449071336538,-0.049239613115788,0.031787697225809,0.007458967156708,0.019642334431410,0.018701642751694,-0.157168909907341,0.174469411373138,0.073148280382156,0.055281307548285,-0.007786942645907,-0.061300504952669,0.011366422288120,0.057227939367294,0.058060884475708,-0.083908088505268) * FEATURE1_texOff(vec2(-1,-1));
res += mat4(-0.046376824378967,-0.005967169068754,0.024801118299365,-0.039367966353893,0.054679680615664,-0.010320273227990,0.050602782517672,-0.128924861550331,0.019992418587208,-0.034376006573439,0.035943116992712,-0.037225496023893,0.089434817433357,0.096710979938507,0.203652858734131,-0.062187179923058) * FEATURE1_texOff(vec2(-1,0));
res += mat4(-0.084091842174530,0.037171956151724,0.041221249848604,-0.230668485164642,0.003123205155134,-0.073047950863838,-0.130908519029617,0.044760286808014,0.033903654664755,-0.090814977884293,0.013187467120588,-0.020995540544391,-0.052689425647259,0.222114861011505,0.204806104302406,-0.423852205276489) * FEATURE1_texOff(vec2(-1,1));
res += mat4(0.055779267102480,0.105748996138573,0.047671541571617,-0.131555289030075,0.007251692004502,-0.037275061011314,0.260034769773483,0.091982088983059,-0.140598341822624,0.001920517534018,-0.253474533557892,-0.122185431420803,0.121546007692814,-0.091900415718555,-0.053238432854414,-0.032964900135994) * FEATURE1_texOff(vec2(0,-1));
res += mat4(-0.048674512654543,0.090221308171749,-0.080489173531532,0.077014118432999,-0.041279908269644,0.045018874108791,-0.082106336951256,0.097980499267578,-0.083623170852661,-0.008527823723853,-0.147446528077126,-0.150643080472946,0.088591560721397,-0.047202598303556,-0.131047323346138,-0.000290761556244) * FEATURE1_texOff(vec2(0,0));
res += mat4(-0.042288210242987,-0.122392818331718,0.093501932919025,0.080577738583088,0.044093165546656,-0.099261157214642,-0.092532083392143,-0.086037449538708,-0.049121450632811,0.023531829938293,0.135349124670029,-0.040144063532352,0.023837484419346,-0.118898496031761,-0.147235229611397,-0.015864117071033) * FEATURE1_texOff(vec2(0,1));
res += mat4(-0.053669832646847,-0.081991270184517,0.012456610798836,0.069073908030987,0.018649991601706,0.043354500085115,-0.008164992555976,0.172580435872078,0.054196469485760,-0.016581159085035,0.152521193027496,-0.002805751981214,-0.055317804217339,0.088252685964108,-0.007744221948087,0.017640480771661) * FEATURE1_texOff(vec2(1,-1));
res += mat4(0.122201561927795,-0.075539156794548,-0.066477566957474,-0.020886180922389,0.138442367315292,-0.094692148268223,-0.010609717108309,0.037463296204805,0.031641867011786,-0.188899800181389,0.159612819552422,-0.119411326944828,0.051931601017714,0.065808653831482,-0.086245052516460,0.165764018893242) * FEATURE1_texOff(vec2(1,0));
res += mat4(0.058994978666306,0.123047403991222,-0.134973824024200,-0.144356697797775,0.065210759639740,0.002588771050796,0.058728754520416,-0.088526092469692,-0.003766795853153,0.193685129284859,0.171219587326050,-0.126572147011757,-0.144309550523758,0.037463210523129,0.002540305489674,0.028834708034992) * FEATURE1_texOff(vec2(1,1));
res += mat4(-0.086764626204967,-0.184207931160927,-0.091091908514500,-0.201625064015388,0.029523182660341,0.015084832906723,0.051928494125605,0.157853990793228,0.011336765252054,-0.011387318372726,0.068995088338852,0.008167722262442,0.142788112163544,0.025124028325081,-0.080316178500652,-0.109630621969700) * FEATURE2_texOff(vec2(-1,-1));
res += mat4(-0.011751795187593,0.010015278123319,-0.194855988025665,-0.019773477688432,0.110428072512150,-0.073873825371265,0.031442373991013,0.064070947468281,0.014825582504272,0.051815737038851,0.130532190203667,0.068892769515514,0.098273999989033,-0.026359181851149,-0.035546150058508,0.077915631234646) * FEATURE2_texOff(vec2(-1,0));
res += mat4(-0.024260565638542,-0.033484797924757,0.026091128587723,-0.068847045302391,0.012431684881449,0.006097157485783,-0.064610205590725,0.031959015876055,0.002853639656678,-0.008367172442377,-0.015998901799321,0.044527180492878,-0.021243248134851,-0.024926077574492,-0.029214343056083,0.228449001908302) * FEATURE2_texOff(vec2(-1,1));
res += mat4(-0.218491911888123,0.351585626602173,-0.152346700429916,0.380300998687744,-0.021858848631382,0.087193891406059,-0.079931229352951,0.045402985066175,0.037281110882759,-0.057530067861080,-0.023866645991802,-0.052178859710693,-0.052324831485748,-0.010415146127343,0.067017540335655,-0.153936460614204) * FEATURE2_texOff(vec2(0,-1));
res += mat4(0.349728405475616,-0.164217665791512,0.315321564674377,-0.177684545516968,-0.081106819212437,-0.102712988853455,-0.091456830501556,-0.213910624384880,-0.042798731476068,0.145155906677246,-0.130416646599770,0.113889396190643,0.157294780015945,0.032557673752308,0.169006705284119,0.084741041064262) * FEATURE2_texOff(vec2(0,0));
res += mat4(-0.055923614650965,-0.222408726811409,0.058700542896986,-0.156613662838936,0.008099664933980,0.043669555336237,0.039839018136263,-0.099614918231964,-0.036529663950205,-0.091654054820538,-0.031133173033595,0.070233471691608,0.048827353864908,0.037849072366953,0.050032429397106,-0.039647296071053) * FEATURE2_texOff(vec2(0,1));
res += mat4(0.243725195527077,-0.160792693495750,0.086911253631115,0.075930923223495,-0.044690195471048,-0.048748623579741,0.120864614844322,-0.197801068425179,-0.029191384091973,-0.023461654782295,-0.062716007232666,0.126432836055756,0.046994864940643,-0.042050894349813,-0.027455801144242,-0.149362713098526) * FEATURE2_texOff(vec2(1,-1));
res += mat4(-0.315258651971817,0.440793931484222,-0.095229551196098,0.194431826472282,-0.000367844884750,0.057981994003057,0.295484840869904,-0.003915196284652,0.005769788753241,-0.008691242896020,-0.066888563334942,0.065471418201923,-0.107251197099686,-0.076613716781139,-0.078824624419212,-0.088000446557999) * FEATURE2_texOff(vec2(1,0));
res += mat4(-0.104341007769108,0.036338686943054,-0.045629397034645,0.121895618736744,0.207337483763695,0.011257422156632,0.006855444516987,-0.052994530647993,-0.032870102673769,0.037798255681992,0.003895734203979,-0.000157418122399,-0.271836400032043,0.017937297001481,-0.103444114327431,-0.235574960708618) * FEATURE2_texOff(vec2(1,1));
res += mat4(-0.128846377134323,0.001392906880938,-0.064643800258636,-0.120256215333939,0.044874850660563,-0.090689994394779,-0.035937193781137,-0.014856986701488,-0.113174065947533,0.009311790578067,0.290667802095413,-0.212247461080551,-0.198440730571747,-0.019071931019425,0.222874388098717,-0.208558529615402) * FEATURE3_texOff(vec2(-1,-1));
res += mat4(-0.193098247051239,-0.012958948500454,0.128262281417847,-0.025020001456141,-0.124060563743114,-0.046438306570053,-0.043638039380312,-0.080288402736187,-0.148842617869377,0.005871730856597,0.371744453907013,-0.064261108636856,-0.302188336849213,0.226499438285828,0.252872616052628,0.112649492919445) * FEATURE3_texOff(vec2(-1,0));
res += mat4(-0.028230538591743,0.127432763576508,0.039974618703127,-0.165626496076584,-0.103593587875366,0.009148003533483,0.028415355831385,-0.065277718007565,-0.158318445086479,-0.080885201692581,0.125073105096817,-0.209442585706711,-0.108343191444874,-0.197680190205574,-0.109249636530876,-0.201274991035461) * FEATURE3_texOff(vec2(-1,1));
res += mat4(0.004862242378294,-0.032952018082142,-0.037373751401901,0.038821194320917,0.176385477185249,0.041153486818075,-0.014355900697410,-0.032184470444918,-0.043901324272156,-0.137095764279366,-0.161243841052055,-0.237247720360756,-0.009684131480753,-0.011629524640739,-0.045776549726725,-0.001898906775750) * FEATURE3_texOff(vec2(0,-1));
res += mat4(-0.053983926773071,-0.325521856546402,0.058125521987677,-0.044518645852804,-0.050190348178148,-0.250198721885681,0.045143883675337,-0.034102983772755,0.046974759548903,0.149077370762825,-0.262251228094101,0.087747484445572,0.100749887526035,0.160076588392258,-0.203449979424477,0.658583223819733) * FEATURE3_texOff(vec2(0,0));
res += mat4(-0.039290782064199,-0.011881425045431,-0.014248184859753,0.098082371056080,0.050185751169920,-0.127548828721046,0.124394275248051,-0.052066098898649,-0.162919566035271,0.018625242635608,-0.115905508399010,0.396885156631470,-0.143145889043808,0.081751503050327,0.032105106860399,-0.037998259067535) * FEATURE3_texOff(vec2(0,1));
res += mat4(-0.007411892060190,0.228421628475189,-0.010676419362426,0.138619095087051,-0.063695006072521,0.033775445073843,-0.003047002013773,0.019074250012636,0.065947562456131,0.075335010886192,-0.024255018681288,-0.029992945492268,0.170717731118202,0.053186763077974,-0.056265376508236,-0.018882598727942) * FEATURE3_texOff(vec2(1,-1));
res += mat4(-0.111369512975216,-0.134495511651039,0.016503127291799,-0.043418444693089,-0.014227024279535,0.272228568792343,-0.094056993722916,-0.066074989736080,0.565654039382935,-0.007525925058872,-0.171622693538666,0.028797086328268,0.537325799465179,-0.200825512409210,0.087811924517155,-0.146064132452011) * FEATURE3_texOff(vec2(1,0));
res += mat4(-0.004679561592638,0.104380995035172,0.084452129900455,-0.042129974812269,0.008581375703216,0.208711549639702,-0.105478003621101,-0.021718850359321,0.253262847661972,-0.013619232922792,-0.114784352481365,0.047724265605211,0.020575134083629,0.108947478234768,-0.045384049415588,0.035994861274958) * FEATURE3_texOff(vec2(1,1));
res += mat4(0.048125479370356,-0.026934221386909,0.322773128747940,0.006983437109739,-0.034070573747158,-0.025202959775925,0.149718791246414,0.166861549019814,-0.062552005052567,-0.020008852705359,0.268607795238495,-0.186133265495300,0.054439548403025,-0.046439092606306,-0.078354738652706,-0.048247221857309) * FEATURE4_texOff(vec2(-1,-1));
res += mat4(-0.077531680464745,0.185102462768555,0.289305031299591,-0.244749173521996,-0.028472544625401,-0.166534870862961,0.042845889925957,-0.069404281675816,-0.166814804077148,0.244074851274490,0.047694053500891,0.290170252323151,-0.048741567879915,-0.148551389575005,-0.021702799946070,-0.038023933768272) * FEATURE4_texOff(vec2(-1,0));
res += mat4(-0.065012507140636,0.046623867005110,-0.132827758789063,0.010660013183951,0.002709435066208,-0.018189614638686,-0.037346594035625,0.114558346569538,0.047234371304512,0.072870388627052,0.039355486631393,0.043276600539684,0.070829898118973,0.047948271036148,0.041122227907181,-0.036962606012821) * FEATURE4_texOff(vec2(-1,1));
res += mat4(-0.101757846772671,-0.141716003417969,-0.132681325078011,-0.016012605279684,0.032410494983196,0.047107659280300,-0.285977959632874,0.148251190781593,-0.159345939755440,0.029316937550902,-0.204634636640549,-0.150767594575882,-0.109534680843353,0.150260016322136,0.129362896084785,-0.418693125247955) * FEATURE4_texOff(vec2(0,-1));
res += mat4(0.020431520417333,0.085022926330566,-0.150826290249825,0.392254143953323,-0.267172604799271,0.245337799191475,-0.045419096946716,-0.025705473497510,0.387387096881866,-0.059766195714474,-0.251972377300262,0.230816781520844,-0.084474690258503,0.155750751495361,0.151268869638443,-0.076536260545254) * FEATURE4_texOff(vec2(0,0));
res += mat4(-0.026010749861598,0.038677651435137,-0.000786912860349,-0.070577606558800,0.251075983047485,-0.031200177967548,0.044296696782112,-0.041549149900675,-0.151873633265495,0.109301090240479,0.006217427551746,-0.028210317716002,0.121040001511574,0.041593890637159,0.034160561859608,-0.030289243906736) * FEATURE4_texOff(vec2(0,1));
res += mat4(0.031925104558468,-0.354145795106888,0.097017973661423,-0.071637727320194,-0.049588244408369,0.100492969155312,0.105385109782219,0.217199832201004,-0.060521744191647,0.080295220017433,-0.006724884267896,0.106119886040688,-0.188227310776711,0.008985368534923,0.033550422638655,-0.206759110093117) * FEATURE4_texOff(vec2(1,-1));
res += mat4(0.353791624307632,-0.101811587810516,-0.077487848699093,0.009292407892644,-0.008142724633217,-0.097654074430466,0.149324238300323,-0.288293778896332,0.260297507047653,-0.411697268486023,0.083239704370499,-0.206645086407661,-0.103962413966656,-0.034946233034134,0.017618607729673,0.016235867515206) * FEATURE4_texOff(vec2(1,0));
res += mat4(-0.277486354112625,-0.089090749621391,-0.019599502906203,-0.067422494292259,0.079357653856277,0.088175833225250,-0.100783497095108,0.043222524225712,-0.101545162498951,-0.045466791838408,-0.009489425458014,-0.009335336275399,0.127352654933929,-0.066169187426567,-0.047411847859621,-0.002330682706088) * FEATURE4_texOff(vec2(1,1));
res += mat4(-0.084214240312576,-0.107222646474838,-0.175197154283524,-0.088844217360020,0.014747386798263,-0.021162331104279,0.060943692922592,0.002251497469842,0.012413170188665,-0.222746208310127,-0.357727110385895,0.134675160050392,-0.163938432931900,-0.137717217206955,-0.376767277717590,0.050324339419603) * FEATURE5_texOff(vec2(-1,-1));
res += mat4(-0.006560327485204,-0.179535597562790,-0.173759490251541,-0.026305887848139,-0.022318163886666,0.121337942779064,-0.026653431355953,0.032996021211147,-0.243188321590424,0.101872712373734,-0.154332563281059,0.259060055017471,0.004275907296687,-0.043889671564102,-0.283039778470993,0.329855710268021) * FEATURE5_texOff(vec2(-1,0));
res += mat4(0.039429787546396,-0.072837121784687,-0.162653654813766,-0.079470604658127,-0.013174528256059,0.145614281296730,0.063069492578506,-0.020878920331597,0.135526239871979,0.111084677278996,0.110925741493702,0.050343893468380,-0.099765472114086,0.269604861736298,-0.010579101741314,0.198340982198715) * FEATURE5_texOff(vec2(-1,1));
res += mat4(-0.155873358249664,-0.054457318037748,-0.075453706085682,-0.047746121883392,0.015684222802520,-0.142272219061852,-0.195604950189590,-0.053989030420780,-0.162403270602226,-0.049231383949518,0.369684010744095,-0.085418224334717,0.024151742458344,0.021645711734891,0.010619349777699,0.038172427564859) * FEATURE5_texOff(vec2(0,-1));
res += mat4(-0.198627188801765,-0.194925665855408,-0.064376786351204,-0.254956722259521,-0.035469401627779,-0.030697844922543,-0.022974058985710,0.039243109524250,0.150336772203445,-0.368218690156937,0.360253095626831,-0.530082046985626,0.173853129148483,-0.524727821350098,0.226148620247841,-0.263050258159637) * FEATURE5_texOff(vec2(0,0));
res += mat4(0.010868676938117,-0.019015993922949,0.072023093700409,-0.206226497888565,-0.062285616993904,0.019356776028872,-0.016133343800902,-0.018755221739411,0.105195142328739,-0.141459465026855,-0.115270994603634,0.079507373273373,0.022082112729549,-0.092031419277191,0.065963581204414,-0.112371258437634) * FEATURE5_texOff(vec2(0,1));
res += mat4(-0.214977756142616,0.046607840806246,0.202250316739082,-0.043553940951824,-0.031254835426807,-0.111059792339802,-0.032413598150015,0.102475538849831,-0.277816951274872,0.201047956943512,0.080637477338314,-0.068468786776066,0.157948240637779,0.060344770550728,0.045336749404669,0.093329422175884) * FEATURE5_texOff(vec2(1,-1));
res += mat4(-0.209967762231827,-0.011955440044403,0.225493222475052,-0.086580678820610,0.029766095802188,-0.058020535856485,-0.024447074159980,-0.010436787270010,-0.478602737188339,0.868139326572418,-0.240881577134132,0.016942217946053,-0.237738713622093,0.159264147281647,0.077933251857758,0.032151121646166) * FEATURE5_texOff(vec2(1,0));
res += mat4(-0.012607077136636,-0.063842326402664,0.178426578640938,-0.152498126029968,-0.027415117248893,0.069493025541306,0.015285089612007,0.021436097100377,0.239360064268112,0.016373161226511,-0.009244103915989,0.042146779596806,-0.079626195132732,0.219595044851303,-0.052998479455709,0.009067589417100) * FEATURE5_texOff(vec2(1,1));
res += mat4(-0.056017708033323,-0.089943364262581,0.076765917241573,-0.033785238862038,0.074981838464737,0.075246110558510,0.073032476007938,0.047999959439039,-0.053683906793594,-0.068345934152603,0.155570566654205,0.059874419122934,0.023545188829303,0.057724930346012,0.180200636386871,-0.045191124081612) * FEATURE6_texOff(vec2(-1,-1));
res += mat4(-0.086612619459629,0.103515163064003,0.166184023022652,-0.072048686444759,-0.062979295849800,0.017546884715557,0.082984678447247,0.124850727617741,-0.019996771588922,-0.012530520558357,-0.075642444193363,0.113774769008160,0.090904511511326,-0.065086580812931,0.166871011257172,-0.178989782929420) * FEATURE6_texOff(vec2(-1,0));
res += mat4(0.111041627824306,-0.123162634670734,0.011498675681651,-0.157514616847038,0.057571414858103,0.045747127383947,0.036808371543884,0.193575143814087,-0.084656849503517,-0.068171374499798,-0.098665148019791,0.060157265514135,0.002130524255335,-0.156581148505211,-0.018041461706161,-0.119300954043865) * FEATURE6_texOff(vec2(-1,1));
res += mat4(-0.039590004831553,-0.084990814328194,0.049009755253792,0.050880644470453,0.062718220055103,-0.097851954400539,0.044146671891212,0.067723177373409,-0.111783996224403,0.037422358989716,-0.231378883123398,-0.028999876230955,-0.131221741437912,-0.044025793671608,-0.116582512855530,-0.024342784658074) * FEATURE6_texOff(vec2(0,-1));
res += mat4(-0.157422691583633,0.090979881584644,-0.061589848250151,0.084414049983025,0.131878092885017,-0.085272200405598,-0.003725955029950,0.155616521835327,0.146718576550484,0.128567680716515,0.033799305558205,0.268497884273529,-0.190099447965622,0.158851996064186,0.004438322503120,0.152358978986740) * FEATURE6_texOff(vec2(0,0));
res += mat4(0.050974924117327,-0.222435936331749,-0.060333739966154,0.051587324589491,0.034087214618921,-0.173379808664322,-0.014471294358373,0.171919003129005,-0.197484955191612,0.021971300244331,0.080886885523796,-0.070769570767879,-0.146561384201050,0.217245697975159,-0.020845726132393,-0.126910105347633) * FEATURE6_texOff(vec2(0,1));
res += mat4(0.095603801310062,-0.135288849473000,0.059381362050772,-0.100939087569714,0.059422407299280,-0.099910490214825,-0.019658202305436,0.041204474866390,-0.021466299891472,0.033404331654310,-0.011660599149764,0.036995388567448,0.096732482314110,-0.090525113046169,0.034627415239811,0.077463284134865) * FEATURE6_texOff(vec2(1,-1));
res += mat4(-0.047718878835440,0.249888569116592,-0.021726969629526,-0.013285131193697,-0.010749218054116,-0.051927685737610,-0.191920414566994,0.052153017371893,0.317143738269806,-0.223874777555466,0.127710685133934,-0.306742131710052,0.237304583191872,-0.226065605878830,-0.009134683758020,-0.110456205904484) * FEATURE6_texOff(vec2(1,0));
res += mat4(0.109420455992222,0.072179451584816,-0.126453608274460,-0.005183955654502,0.072754062712193,0.016658376902342,-0.052864395081997,0.023552400991321,-0.111763194203377,-0.032718654721975,0.001829867367633,-0.001629301114008,-0.024507546797395,0.066143244504929,-0.005459304898977,0.080849654972553) * FEATURE6_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(-0.001180525636300,0.190058246254921,-0.265664100646973,-0.016928374767303) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 3.200 * > OUTPUT.h LUMA.h 3.200 * > *
//!COMPONENTS 4
//!BIND FEATURE1
//!BIND FEATURE2
//!BIND FEATURE3
//!BIND FEATURE4
//!BIND FEATURE5
//!BIND FEATURE6
//!SAVE MODEL5
//!DESC [AiUpscale_Medium_4x_Photo] mapping 1_5

vec4 hook()
{
vec4 res = vec4(0.002027232199907,-0.424850493669510,0.050279200077057,0.054240997880697);
res += mat4(0.011185301467776,0.045383993536234,-0.191832393407822,-0.021883839741349,0.032978709787130,-0.025744015350938,0.009852853603661,-0.071427360177040,-0.015066316351295,0.147450789809227,0.016740946099162,-0.095495752990246,0.050512306392193,-0.022273860871792,0.032827667891979,0.045660570263863) * FEATURE1_texOff(vec2(-1,-1));
res += mat4(-0.001778376637958,0.021893121302128,-0.032328665256500,-0.143383488059044,0.022337336093187,0.039180777966976,0.134131118655205,-0.033185094594955,-0.043958388268948,0.080852605402470,0.033555205911398,0.071713164448738,0.077686749398708,-0.259239584207535,0.077626243233681,0.024785596877337) * FEATURE1_texOff(vec2(-1,0));
res += mat4(0.067529521882534,-0.186547085642815,-0.077955253422260,-0.141881316900253,-0.032042026519775,0.040866658091545,0.078625433146954,-0.103797972202301,0.098021484911442,0.019969791173935,0.028760252520442,0.158547788858414,-0.137543454766273,-0.014268444851041,0.104113198816776,0.238555744290352) * FEATURE1_texOff(vec2(-1,1));
res += mat4(0.066126197576523,0.128002837300301,-0.073430590331554,0.114869497716427,-0.051579233258963,0.065733328461647,0.006719989236444,-0.230757981538773,-0.041288055479527,-0.066575266420841,-0.137011691927910,0.090571664273739,0.057722695171833,-0.019433481618762,-0.034418631345034,0.159241408109665) * FEATURE1_texOff(vec2(0,-1));
res += mat4(0.110993631184101,-0.025696350261569,-0.055769190192223,0.023004563525319,0.024635778740048,0.020446369424462,-0.016221776604652,0.278082519769669,-0.011748026125133,-0.083763375878334,-0.184505313634872,0.067153736948967,-0.007322349585593,-0.090278834104538,-0.187163919210434,-0.148276269435883) * FEATURE1_texOff(vec2(0,0));
res += mat4(0.060628987848759,-0.186087995767593,0.027116337791085,0.094734810292721,0.152685031294823,0.113782897591591,0.028743060305715,0.047738999128342,0.060941159725189,-0.052293494343758,-0.054566837847233,-0.006575295235962,-0.129776552319527,0.029856789857149,-0.275548756122589,0.043820049613714) * FEATURE1_texOff(vec2(0,1));
res += mat4(0.011741053313017,-0.115441165864468,0.008986270055175,0.010622847825289,-0.045141685754061,-0.029105870053172,-0.078767776489258,-0.085879579186440,-0.163157090544701,0.003154261270538,-0.052834812551737,0.031289346516132,-0.008109143935144,0.193171098828316,0.047992344945669,0.002474827226251) * FEATURE1_texOff(vec2(1,-1));
res += mat4(-0.000734776200261,-0.041383970528841,-0.011452803388238,0.037239704281092,0.099235728383064,0.058337673544884,-0.053592525422573,0.049293585121632,0.124419420957565,0.141787573695183,0.061178583651781,0.225207865238190,0.022038659080863,-0.022603372111917,0.060838740319014,-0.193475723266602) * FEATURE1_texOff(vec2(1,0));
res += mat4(-0.037658125162125,-0.004670159891248,-0.020492954179645,-0.024395648390055,-0.002627000212669,0.100107043981552,0.045102093368769,0.058310698717833,0.065426081418991,-0.012989711016417,-0.049125559628010,0.053836673498154,-0.023612208664417,-0.037806395441294,0.140302315354347,0.305708676576614) * FEATURE1_texOff(vec2(1,1));
res += mat4(0.004710439592600,0.001910749124363,0.214065179228783,-0.024257477372885,-0.044437177479267,0.029354019090533,-0.114269793033600,-0.171274289488792,-0.161268919706345,-0.006401849444956,-0.362431347370148,-0.132776096463203,0.001499773119576,0.165972694754601,-0.001358666690066,-0.133916750550270) * FEATURE2_texOff(vec2(-1,-1));
res += mat4(-0.030856154859066,-0.033986698836088,-0.233609989285469,0.237885981798172,0.011107822880149,0.056161619722843,-0.106331937015057,-0.029193038120866,0.081879079341888,0.157250002026558,-0.250444322824478,0.114858135581017,-0.103398002684116,0.018859406933188,-0.025881966575980,-0.093975603580475) * FEATURE2_texOff(vec2(-1,0));
res += mat4(-0.040645118802786,-0.016844742000103,0.008979616686702,-0.000865669338964,-0.005011416040361,0.054005619138479,-0.129519581794739,-0.015581702813506,0.034965630620718,0.044205386191607,-0.138508513569832,0.161095753312111,0.192310705780983,0.030472202226520,-0.038935277611017,-0.093815587460995) * FEATURE2_texOff(vec2(-1,1));
res += mat4(-0.413055509328842,-0.404758989810944,-0.278860241174698,-0.113223545253277,-0.048088159412146,-0.111452847719193,-0.117142707109451,-0.019413089379668,0.083477675914764,0.095688924193382,0.212183579802513,-0.071689732372761,0.009457233361900,0.219177648425102,0.058253657072783,-0.005471288692206) * FEATURE2_texOff(vec2(0,-1));
res += mat4(0.511370837688446,-0.080990165472031,0.248004734516144,0.278918862342834,-0.014988105744123,-0.071637563407421,-0.309124052524567,0.156469911336899,-0.305986762046814,-0.068370707333088,0.038826987147331,0.141736850142479,-0.010755727067590,-0.052693579345942,0.063659757375717,-0.053738325834274) * FEATURE2_texOff(vec2(0,0));
res += mat4(0.077166259288788,0.010709162801504,0.216195538640022,0.130702823400497,-0.063799619674683,-0.070684269070625,-0.206963360309601,0.165343642234802,0.249379709362984,0.040906261652708,0.045088607817888,-0.003607566235587,-0.081870928406715,-0.006178958341479,-0.070437051355839,0.061057295650244) * FEATURE2_texOff(vec2(0,1));
res += mat4(-0.109568394720554,0.126643955707550,-0.077410787343979,0.023573389276862,-0.224085614085197,-0.092859745025635,-0.100544124841690,-0.172287493944168,0.071870319545269,0.019746826961637,0.282889515161514,0.142469719052315,0.026637775823474,0.022187180817127,0.001699982094578,-0.076710827648640) * FEATURE2_texOff(vec2(1,-1));
res += mat4(-0.108781456947327,0.054960291832685,-0.101058728992939,-0.036882359534502,0.156214728951454,0.051035720854998,0.457046568393707,-0.127323120832443,-0.105368621647358,0.083867803215981,0.175899565219879,0.126722291111946,-0.044806048274040,0.013131010346115,0.105842076241970,-0.057551063597202) * FEATURE2_texOff(vec2(1,0));
res += mat4(0.286572009325027,0.105759523808956,0.022400466725230,-0.127623885869980,-0.063484527170658,-0.133163601160049,-0.281534135341644,0.052278239279985,-0.083565607666969,-0.024576187133789,0.013403759337962,-0.122371904551983,0.045870222151279,-0.226942345499992,0.072349593043327,0.075478963553905) * FEATURE2_texOff(vec2(1,1));
res += mat4(0.089748263359070,-0.051266644150019,0.044825453311205,-0.085334330797195,0.002115156268701,-0.133905082941055,0.032867025583982,-0.020188862457871,-0.057138483971357,0.057392418384552,0.173071324825287,-0.242106527090073,-0.006446828134358,0.374681383371353,0.084779515862465,-0.213762313127518) * FEATURE3_texOff(vec2(-1,-1));
res += mat4(0.024486953392625,-0.177510336041451,0.232721179723740,0.175922393798828,0.053107853978872,-0.035437699407339,-0.020792119204998,0.049465216696262,0.040597271174192,-0.284372299909592,0.099186867475510,0.149750888347626,-0.104550316929817,-0.308667391538620,-0.124067448079586,-0.030996279790998) * FEATURE3_texOff(vec2(-1,0));
res += mat4(-0.073889702558517,-0.060214363038540,0.083391360938549,0.018943294882774,-0.054071258753538,0.061265170574188,0.083118006587029,-0.317985862493515,0.105482116341591,-0.031211549416184,0.008769042789936,0.154573783278465,0.122294068336487,-0.232236653566360,-0.019350949674845,-0.141974821686745) * FEATURE3_texOff(vec2(-1,1));
res += mat4(0.119768857955933,-0.153191417455673,-0.007242422550917,-0.059136535972357,-0.016071669757366,-0.149969115853310,-0.235567837953568,-0.090314261615276,0.014989106915891,0.403873801231384,-0.011659196577966,-0.024875557050109,-0.131841182708740,0.569065868854523,0.016578957438469,0.085017241537571) * FEATURE3_texOff(vec2(0,-1));
res += mat4(-0.175680816173553,0.064697928726673,-0.102035894989967,0.106347389519215,0.326037526130676,-0.117328867316246,0.198455721139908,-0.032751463353634,-0.402334749698639,0.098948560655117,-0.005565062165260,-0.127091377973557,-0.081973537802696,-0.089387007057667,0.025121504440904,-0.140272140502930) * FEATURE3_texOff(vec2(0,0));
res += mat4(0.065565377473831,-0.091920569539070,0.080789864063263,-0.030896509066224,0.163199946284294,0.063904054462910,0.152062624692917,-0.153315007686615,0.199328392744064,-0.191681891679764,0.074656531214714,-0.209756746888161,0.429244786500931,-0.096745043992996,0.097469575703144,-0.068058356642723) * FEATURE3_texOff(vec2(0,1));
res += mat4(0.009859956800938,0.058215484023094,-0.203321516513824,0.075678862631321,0.018947832286358,0.111731737852097,-0.010245950892568,0.013660796917975,-0.004431229084730,-0.009069003164768,-0.145403340458870,0.132741734385490,-0.058597318828106,0.008837600238621,-0.095058314502239,0.200141891837120) * FEATURE3_texOff(vec2(1,-1));
res += mat4(0.000733308785129,0.183165624737740,-0.293805211782455,0.112494021654129,-0.013718526810408,0.094175741076469,0.214566007256508,0.073781691491604,-0.053989622741938,-0.078733056783676,-0.051350418478251,0.145272731781006,-0.019767474383116,0.023609120398760,-0.047447402030230,0.228637740015984) * FEATURE3_texOff(vec2(1,0));
res += mat4(0.014956588856876,0.223252102732658,-0.059845488518476,-0.005132441874593,-0.022448869422078,0.001821208163165,0.054268050938845,-0.050778478384018,0.041299961507320,0.048522010445595,-0.093824423849583,0.062005143612623,-0.056308064609766,-0.211113229393959,-0.030136074870825,0.066701650619507) * FEATURE3_texOff(vec2(1,1));
res += mat4(-0.049522913992405,0.064473420381546,0.364218711853027,0.083115793764591,-0.111762829124928,-0.122947514057159,-0.232427775859833,-0.019476503133774,0.099640220403671,0.132550194859505,0.096296980977058,-0.290500551462173,-0.088489621877670,-0.092042431235313,0.127170011401176,-0.092926122248173) * FEATURE4_texOff(vec2(-1,-1));
res += mat4(-0.020925926044583,-0.023152921348810,0.137069419026375,0.124771006405354,0.287943512201309,0.146714150905609,0.207084268331528,-0.055885944515467,-0.273472338914871,-0.114587858319283,-0.155488193035126,0.020217740908265,-0.101370811462402,-0.041785780340433,-0.104575544595718,-0.227307423949242) * FEATURE4_texOff(vec2(-1,0));
res += mat4(0.048208639025688,-0.054159253835678,0.177078738808632,0.021603344008327,-0.242746546864510,-0.203250512480736,-0.175407797098160,0.083039768040180,0.324968159198761,0.088329955935478,0.055717609822750,-0.056483108550310,-0.203238472342491,-0.129714503884315,-0.068197280168533,0.094817295670509) * FEATURE4_texOff(vec2(-1,1));
res += mat4(-0.155337378382683,0.191661164164543,-0.057365115731955,-0.070008374750614,-0.036476075649261,0.017858058214188,-0.097836583852768,-0.165978506207466,-0.125576391816139,-0.116524904966354,0.081496678292751,0.131949037313461,-0.092557676136494,-0.054562523961067,-0.048413049429655,0.362121969461441) * FEATURE4_texOff(vec2(0,-1));
res += mat4(-0.305740803480148,-0.071307681500912,-0.382803887128830,-0.109067007899284,0.367143720388412,-0.002221163129434,0.102713629603386,-0.033281750977039,-0.245541095733643,-0.040398642420769,-0.394635796546936,-0.066383086144924,0.148729532957077,0.119578644633293,-0.140423431992531,0.044730152934790) * FEATURE4_texOff(vec2(0,0));
res += mat4(0.544515669345856,-0.039657086133957,0.015376405790448,0.145925819873810,-0.050192166119814,-0.113068342208862,-0.079459466040134,0.165722802281380,0.254651099443436,-0.054440427571535,0.053199201822281,0.013936916366220,-0.163248226046562,-0.104099631309509,-0.021309355273843,0.200400322675705) * FEATURE4_texOff(vec2(0,1));
res += mat4(-0.043813940137625,-0.070909090340137,-0.078107863664627,-0.004405185580254,-0.026365529745817,-0.110914550721645,-0.287674039602280,-0.112238250672817,-0.107782542705536,-0.009542077779770,-0.085395231842995,-0.020089441910386,-0.108942024409771,0.026630580425262,0.132363393902779,0.007113660220057) * FEATURE4_texOff(vec2(1,-1));
res += mat4(-0.073468148708344,0.119033589959145,-0.185636252164841,0.076844543218613,0.297802686691284,0.138360753655434,0.310998708009720,0.069850981235504,0.235886201262474,0.104280591011047,0.274763077497482,0.152986928820610,-0.067620463669300,0.088110491633415,-0.052538882941008,-0.150475248694420) * FEATURE4_texOff(vec2(1,0));
res += mat4(0.101957134902477,0.006595919840038,0.025335930287838,-0.050779189914465,-0.250619947910309,0.060225360095501,-0.099324390292168,-0.066357813775539,-0.153716191649437,-0.008211228996515,-0.031044127419591,0.065377183258533,-0.048187628388405,-0.017981868237257,-0.006798679009080,0.043206412345171) * FEATURE4_texOff(vec2(1,1));
res += mat4(0.205987334251404,-0.081652320921421,0.132298931479454,0.182066529989243,0.101673133671284,0.019091686233878,0.100297965109348,0.002227497752756,0.017250824719667,-0.175579220056534,-0.120961137115955,-0.277076452970505,-0.009511757642031,-0.113616026937962,0.044802080839872,-0.190552935004234) * FEATURE5_texOff(vec2(-1,-1));
res += mat4(0.016426116228104,-0.186316147446632,0.246360927820206,0.018589818850160,-0.048407480120659,0.040359858423471,0.082302309572697,0.265384823083878,0.054473038762808,-0.103949569165707,-0.146912381052971,-0.035065468400717,-0.092502705752850,-0.033359583467245,-0.217317774891853,-0.150950610637665) * FEATURE5_texOff(vec2(-1,0));
res += mat4(-0.264357179403305,-0.155251234769821,0.023599699139595,0.029264641925693,-0.053161997348070,-0.020321162417531,-0.038083098828793,-0.015284514054656,-0.071171760559082,-0.044380158185959,0.066387243568897,-0.150012791156769,0.066006347537041,-0.089279532432556,-0.095169685781002,-0.122607417404652) * FEATURE5_texOff(vec2(-1,1));
res += mat4(0.298717707395554,-0.210195213556290,0.079282052814960,0.244178637862206,-0.106884002685547,0.012879969552159,0.104942031204700,0.037464454770088,0.237927421927452,-0.276749759912491,0.263084232807159,-0.300263881683350,0.041278887540102,-0.292413294315338,-0.056393925100565,-0.086896985769272) * FEATURE5_texOff(vec2(0,-1));
res += mat4(0.261495530605316,-0.149832352995872,0.401920855045319,0.031151464208961,-0.000656660238747,0.029113205149770,-0.095800444483757,0.025535594671965,0.230374038219452,0.219903796911240,0.554580152034760,0.355682075023651,0.237680688500404,-0.000009829606824,0.181656464934349,0.113115541636944) * FEATURE5_texOff(vec2(0,0));
res += mat4(-0.483166605234146,0.078373774886131,-0.018242232501507,0.056947708129883,0.026319777593017,-0.002760130912066,-0.086533300578594,-0.087974935770035,-0.551411151885986,-0.120759345591068,-0.049369119107723,-0.261196851730347,-0.134398177266121,-0.017545051872730,-0.110406152904034,0.103907704353333) * FEATURE5_texOff(vec2(0,1));
res += mat4(0.214109763503075,-0.057397883385420,0.172196626663208,0.139559850096703,-0.078650183975697,0.093592338263988,0.021722277626395,-0.116749987006187,0.017867457121611,0.129199013113976,0.036406885832548,-0.013899205252528,-0.012176099233329,0.329136461019516,0.065898068249226,-0.051134251058102) * FEATURE5_texOff(vec2(1,-1));
res += mat4(0.190997898578644,-0.079328373074532,0.464221775531769,0.006037641782314,0.023720486089587,0.055029846727848,0.074260674417019,-0.114259324967861,0.077531434595585,-0.121413305401802,-0.065973877906799,0.004996437113732,-0.002458863426000,0.230383113026619,0.037353955209255,0.063332460820675) * FEATURE5_texOff(vec2(1,0));
res += mat4(-0.408189892768860,-0.060807533562183,-0.036109477281570,0.073887571692467,-0.092853218317032,-0.060830786824226,0.094398319721222,-0.013809534721076,-0.072009094059467,0.060935966670513,-0.241427272558212,0.015616022050381,-0.016633944585919,0.116606459021568,0.005799164064229,0.026842962950468) * FEATURE5_texOff(vec2(1,1));
res += mat4(-0.048059694468975,0.043939188122749,0.055640254169703,0.040800482034683,-0.079322732985020,0.121514946222305,0.112269401550293,-0.013193844817579,0.071008764207363,0.050103727728128,0.007691484875977,-0.059139627963305,0.013082775287330,0.118295542895794,0.151006877422333,0.048706948757172) * FEATURE6_texOff(vec2(-1,-1));
res += mat4(0.057104852050543,0.075947321951389,0.064115904271603,0.029991356655955,-0.024878900498152,0.140524029731750,0.136310935020447,0.027934217825532,-0.103121317923069,-0.155857682228088,-0.041365701705217,0.119159750640392,0.019624404609203,0.191110789775848,0.172440722584724,0.154740527272224) * FEATURE6_texOff(vec2(-1,0));
res += mat4(-0.035687487572432,0.020516265183687,0.065885804593563,-0.187318831682205,-0.116889268159866,0.012743262574077,0.081987529993057,-0.090237572789192,0.064734213054180,0.034008998423815,0.017830878496170,-0.126622200012207,0.033310696482658,0.204418361186981,0.166630789637566,0.121254079043865) * FEATURE6_texOff(vec2(-1,1));
res += mat4(-0.013902193866670,0.039221670478582,0.138978421688080,-0.045736581087112,-0.017128074541688,0.048552501946688,0.016840798780322,0.044318672269583,0.143787875771523,0.183312758803368,-0.010767113417387,0.019052350893617,-0.162902504205704,0.068226158618927,-0.134798496961594,0.017324725165963) * FEATURE6_texOff(vec2(0,-1));
res += mat4(0.028453528881073,0.045013647526503,0.011087267659605,0.135309934616089,-0.008331953547895,0.094536222517490,0.088676229119301,0.016644671559334,-0.382896870374680,-0.126176625490189,-0.310066461563110,0.032797798514366,-0.168999984860420,0.020331582054496,-0.336693882942200,-0.088536046445370) * FEATURE6_texOff(vec2(0,0));
res += mat4(0.068016350269318,-0.170398205518723,-0.177558377385139,0.016637362539768,-0.036760140210390,-0.021596645936370,0.002754553221166,0.147296786308289,0.324886679649353,0.257348209619522,0.140656858682632,0.202808275818825,0.380289554595947,-0.009012297727168,0.052090410143137,-0.058417636901140) * FEATURE6_texOff(vec2(0,1));
res += mat4(-0.022437352687120,0.028016304597259,0.033415369689465,-0.117441728711128,-0.015350030735135,0.154386654496193,-0.067746169865131,-0.026173746213317,-0.011871817521751,-0.250617295503616,-0.132082849740982,0.165475875139236,0.018081068992615,-0.248441264033318,0.159471929073334,-0.143585965037346) * FEATURE6_texOff(vec2(1,-1));
res += mat4(0.005254453513771,-0.010210648179054,0.019540688022971,-0.062474168837070,-0.043694715946913,0.073608331382275,-0.108207523822784,0.195660218596458,0.148860186338425,0.104544326663017,0.197829708456993,0.109134100377560,-0.128064662218094,-0.094606548547745,-0.009917262941599,0.104792505502701) * FEATURE6_texOff(vec2(1,0));
res += mat4(0.015327252447605,0.048572145402431,-0.091309472918510,-0.069066032767296,0.095621891319752,0.001646384247579,0.067067675292492,-0.073505930602551,-0.184131801128387,-0.062275253236294,-0.033028077334166,-0.114739149808884,0.097959071397781,-0.043305158615112,0.162406802177429,-0.139755666255951) * FEATURE6_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(-0.129357159137726,0.065854616463184,0.029076822102070,0.115126796066761) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 3.200 * > OUTPUT.h LUMA.h 3.200 * > *
//!COMPONENTS 4
//!BIND FEATURE1
//!BIND FEATURE2
//!BIND FEATURE3
//!BIND FEATURE4
//!BIND FEATURE5
//!BIND FEATURE6
//!SAVE MODEL6
//!DESC [AiUpscale_Medium_4x_Photo] mapping 1_6

vec4 hook()
{
vec4 res = vec4(0.039332386106253,0.222453802824020,0.033652912825346,-0.045145723968744);
res += mat4(-0.130148619413376,-0.124567665159702,-0.087043806910515,0.046466041356325,-0.104274787008762,0.068430036306381,0.034956492483616,0.061402112245560,-0.061999049037695,0.146711334586143,0.039354044944048,0.092697046697140,-0.051485128700733,-0.044704973697662,-0.030371993780136,-0.049548059701920) * FEATURE1_texOff(vec2(-1,-1));
res += mat4(-0.152623489499092,-0.079631075263023,-0.066108457744122,-0.090215191245079,-0.077826663851738,-0.039978157728910,-0.049752943217754,-0.107187546789646,0.021592319011688,0.021875938400626,0.024027323350310,0.025597414001822,0.053641229867935,-0.197578579187393,-0.065015904605389,-0.003085934557021) * FEATURE1_texOff(vec2(-1,0));
res += mat4(-0.003972214180976,0.066569745540619,0.032197792083025,-0.174892574548721,-0.040840696543455,0.059624157845974,0.009144479408860,-0.003753109369427,0.021757928654552,0.034020591527224,0.041788946837187,-0.008328757248819,-0.178069621324539,-0.143625706434250,-0.194362193346024,0.018745660781860) * FEATURE1_texOff(vec2(-1,1));
res += mat4(-0.081062301993370,-0.265388935804367,-0.020004730671644,-0.008319715037942,0.271847337484360,-0.060544643551111,0.012755170464516,0.055835388600826,0.262707233428955,0.003670699195936,-0.020660204812884,0.024243051186204,-0.111327692866325,0.240433678030968,-0.020042918622494,-0.058916047215462) * FEATURE1_texOff(vec2(0,-1));
res += mat4(-0.078629061579704,0.065349653363228,-0.017303530126810,0.011689556762576,0.000553854217287,-0.038240190595388,0.024401925504208,-0.111493676900864,0.142227843403816,0.006819380447268,0.016237298026681,-0.006973319686949,0.119742073118687,-0.026654282584786,-0.007256223354489,0.033048212528229) * FEATURE1_texOff(vec2(0,0));
res += mat4(0.205961167812347,0.181370869278908,-0.065854564309120,-0.088338583707809,0.032063920050859,0.005196420941502,0.107609793543816,0.040757611393929,0.067732304334641,-0.136788919568062,-0.017856111750007,0.037435755133629,-0.133409351110458,-0.110800288617611,-0.054457899183035,-0.039881754666567) * FEATURE1_texOff(vec2(0,1));
res += mat4(-0.032852388918400,-0.059839371591806,0.064320042729378,0.023233547806740,0.180895715951920,0.011870849877596,-0.144788339734077,-0.079868793487549,-0.166051521897316,-0.158198833465576,0.037290852516890,-0.035229835659266,0.106118112802505,0.123050980269909,0.072289891541004,0.051957167685032) * FEATURE1_texOff(vec2(1,-1));
res += mat4(-0.079447187483311,0.106446571648121,0.167303979396820,0.057949721813202,0.168269947171211,-0.008230581879616,0.155592888593674,0.055051155388355,-0.111552894115448,0.180566892027855,-0.001162029569969,-0.122599735856056,0.265052378177643,0.013182741589844,0.126371592283249,0.141983121633530) * FEATURE1_texOff(vec2(1,0));
res += mat4(0.119181483983994,-0.070519961416721,-0.038294784724712,0.033281136304140,0.122115612030029,0.011339452117682,0.033567119389772,0.080474391579628,-0.092721074819565,-0.123339191079140,-0.158708661794662,-0.094551086425781,0.143016427755356,0.095567852258682,0.183320775628090,0.047793369740248) * FEATURE1_texOff(vec2(1,1));
res += mat4(-0.174911320209503,0.107310883700848,0.062078159302473,0.000204158859560,-0.024403564631939,0.089353561401367,-0.038823306560516,-0.042379170656204,-0.189001366496086,-0.087376713752747,-0.253915071487427,-0.055607985705137,-0.228179216384888,0.066639840602875,0.009286728687584,0.018266482278705) * FEATURE2_texOff(vec2(-1,-1));
res += mat4(0.181424826383591,0.125594675540924,-0.042313773185015,-0.268563926219940,-0.046939197927713,0.019403429701924,-0.001161813386716,0.046920720487833,-0.232350155711174,-0.169150099158287,-0.031994760036469,-0.103118240833282,-0.126850143074989,0.137908414006233,0.027667917311192,0.133692458271980) * FEATURE2_texOff(vec2(-1,0));
res += mat4(-0.078990474343300,0.078920483589172,0.035616833716631,0.033565115183592,-0.133974164724350,0.119947500526905,0.058451063930988,0.062209282070398,-0.084408156573772,-0.217403843998909,-0.025233019143343,-0.051725525408983,-0.142363458871841,0.149244278669357,0.158682301640511,0.118257932364941) * FEATURE2_texOff(vec2(-1,1));
res += mat4(0.322947859764099,-0.326285928487778,-0.287305712699890,0.075043477118015,0.118752181529999,0.033159293234348,0.027912614867091,0.113521836698055,0.104654870927334,0.016126653179526,0.137173622846603,-0.193518683314323,0.051699504256248,-0.150603100657463,-0.071703985333443,-0.116117216646671) * FEATURE2_texOff(vec2(0,-1));
res += mat4(-0.327665597200394,0.022566262632608,0.251370996236801,-0.072108879685402,0.037249226123095,-0.114776417613029,0.065885879099369,-0.102956451475620,0.004330069292337,-0.146985664963722,-0.227842539548874,-0.227905005216599,0.073760569095612,-0.125072628259659,0.042570300400257,-0.076317735016346) * FEATURE2_texOff(vec2(0,0));
res += mat4(-0.147471815347672,-0.220319926738739,0.177428245544434,-0.047104720026255,0.067163221538067,-0.076708748936653,0.030305463820696,0.072765506803989,-0.066132634878159,-0.002613906981423,0.062270879745483,0.009573704563081,0.161288321018219,0.152725562453270,-0.184927284717560,-0.277052313089371) * FEATURE2_texOff(vec2(0,1));
res += mat4(0.095358535647392,0.174360588192940,0.227331876754761,0.057148143649101,0.079893492162228,-0.042804710566998,0.066746421158314,-0.081185668706894,-0.089358799159527,-0.163979232311249,0.076479211449623,0.010940315201879,-0.060554426163435,0.101023100316525,0.046243261545897,-0.006232261657715) * FEATURE2_texOff(vec2(1,-1));
res += mat4(0.125747531652451,-0.203319355845451,-0.309153079986572,0.147337675094604,-0.089010931551456,-0.217980071902275,0.061515800654888,-0.014678263105452,-0.025796409696341,-0.125790581107140,0.240639194846153,-0.119013801217079,-0.016350591555238,0.197520911693573,0.076893731951714,-0.035871062427759) * FEATURE2_texOff(vec2(1,0));
res += mat4(0.050663907080889,0.024228036403656,-0.146815508604050,-0.073127150535583,0.001230105292052,-0.078059054911137,-0.067119568586349,-0.088172510266304,0.031588334590197,-0.059598591178656,-0.045986011624336,0.146677464246750,0.087066441774368,0.050301987677813,-0.181244164705276,-0.203664809465408) * FEATURE2_texOff(vec2(1,1));
res += mat4(-0.215725898742676,-0.302448004484177,-0.016176713630557,-0.198649480938911,-0.055062267929316,-0.031783577054739,0.005856898613274,0.005864565726370,-0.121471524238586,0.117518618702888,-0.075648248195648,-0.050475452095270,-0.038774952292442,0.086785674095154,-0.005481145344675,-0.020598398521543) * FEATURE3_texOff(vec2(-1,-1));
res += mat4(-0.066843613982201,-0.133856102824211,-0.032047417014837,-0.046538334339857,0.072932831943035,-0.296310722827911,-0.060468703508377,-0.016196308657527,-0.167182400822639,0.175854802131653,0.050713203847408,0.066573880612850,-0.276409745216370,0.230117425322533,-0.241782680153847,-0.070558860898018) * FEATURE3_texOff(vec2(-1,0));
res += mat4(0.025977011770010,-0.069654032588005,-0.068008206784725,0.251802504062653,-0.178248181939125,-0.074508823454380,-0.124006427824497,-0.014557304792106,-0.030300900340080,0.058105889707804,-0.096523404121399,-0.200025543570518,-0.015687204897404,0.233168452978134,0.182963415980339,-0.010258202441037) * FEATURE3_texOff(vec2(-1,1));
res += mat4(-0.116970568895340,-0.069494761526585,-0.034185498952866,0.036490391939878,-0.049076586961746,0.008083263412118,-0.084966026246548,0.062931865453720,-0.099379152059555,-0.100082091987133,0.134000763297081,-0.030191520228982,0.009401923045516,-0.215117350220680,-0.182688459753990,0.033854149281979) * FEATURE3_texOff(vec2(0,-1));
res += mat4(0.102188803255558,-0.027192795649171,0.282558292150497,-0.355649650096893,-0.171401098370552,-0.060175050050020,0.318128705024719,0.014647184871137,-0.140128985047340,-0.118530370295048,-0.317860245704651,0.142206937074661,-0.226355284452438,-0.112803526222706,-0.230349108576775,0.196521013975143) * FEATURE3_texOff(vec2(0,0));
res += mat4(-0.091741666197777,-0.001342221861705,0.008921271190047,0.069453686475754,-0.025734782218933,0.100987143814564,0.271020472049713,0.013386226259172,-0.094243466854095,-0.169648706912994,-0.253650069236755,0.095791459083557,0.131209507584572,0.200848147273064,-0.034262616187334,0.168741464614868) * FEATURE3_texOff(vec2(0,1));
res += mat4(-0.256387293338776,-0.041976619511843,-0.177093744277954,-0.122977547347546,-0.119996637105942,0.026841677725315,0.075956910848618,-0.020110171288252,0.063370279967785,-0.093233518302441,-0.074547156691551,-0.114340066909790,0.000658320263028,-0.061158213764429,0.153277188539505,-0.062916047871113) * FEATURE3_texOff(vec2(1,-1));
res += mat4(-0.139430686831474,0.064770914614201,0.162815183401108,-0.076270394027233,0.193554803729057,-0.077036410570145,-0.306221544742584,0.137866184115410,-0.094425067305565,-0.155508324503899,0.321725219488144,-0.108797460794449,-0.098674148321152,-0.094285026192665,0.422430813312531,-0.171418622136116) * FEATURE3_texOff(vec2(1,0));
res += mat4(-0.079983308911324,0.043539028614759,-0.038000259548426,0.135035410523415,-0.086677551269531,0.025127787142992,-0.214382082223892,-0.152030140161514,0.080159246921539,-0.024929136037827,0.260943979024887,0.003870574524626,0.122138753533363,0.092034533619881,-0.020273225381970,-0.126419693231583) * FEATURE3_texOff(vec2(1,1));
res += mat4(-0.084238350391388,-0.143670737743378,0.005319274496287,-0.122021846473217,0.070046663284302,-0.272567868232727,-0.008057585917413,-0.069356121122837,-0.182626664638519,0.129835337400436,-0.038270626217127,-0.029885757714510,-0.033694811165333,-0.110386081039906,0.066203042864799,0.003245553467423) * FEATURE4_texOff(vec2(-1,-1));
res += mat4(-0.244168072938919,-0.098475903272629,-0.056528605520725,-0.131142064929008,-0.298401176929474,-0.085250586271286,0.049405578523874,-0.183473512530327,-0.006659904494882,-0.224545478820801,-0.361466050148010,0.069948740303516,-0.158935487270355,-0.071800723671913,0.108766712248325,0.101607263088226) * FEATURE4_texOff(vec2(-1,0));
res += mat4(-0.005094858817756,-0.076481953263283,0.005410515703261,-0.136715292930603,0.116053037345409,-0.129843756556511,0.044607307761908,0.235793754458427,-0.064251869916916,0.164870709180832,-0.091664597392082,-0.111013472080231,0.067288123071194,0.063262581825256,-0.029385125264525,-0.060732115060091) * FEATURE4_texOff(vec2(-1,1));
res += mat4(-0.166056737303734,0.015123954042792,0.017408169806004,-0.113807052373886,0.214766994118690,-0.216994822025299,0.010981258004904,-0.040653664618731,-0.022779973223805,0.035094812512398,-0.109339974820614,0.074177138507366,-0.029207261279225,-0.038115639239550,-0.027853438630700,-0.283066302537918) * FEATURE4_texOff(vec2(0,-1));
res += mat4(0.242475837469101,0.014452476985753,-0.245604217052460,-0.099628634750843,-0.080831602215767,0.180510461330414,0.048864874988794,-0.108129851520061,0.269334703683853,0.070091672241688,-0.073689341545105,-0.307589471340179,-0.077650174498558,-0.194180801510811,-0.069357201457024,-0.093942135572433) * FEATURE4_texOff(vec2(0,0));
res += mat4(0.114185445010662,-0.019408941268921,-0.110784932971001,0.046312905848026,0.095902860164642,-0.123165585100651,0.098180003464222,-0.013480312190950,0.064573161303997,-0.031721461564302,-0.163592100143433,0.181724861264229,0.130734831094742,-0.107212223112583,0.005131180398166,-0.145485728979111) * FEATURE4_texOff(vec2(0,1));
res += mat4(-0.116444349288940,-0.006341217551380,0.120612278580666,-0.140934586524963,0.307676017284393,-0.073804058134556,0.018598871305585,0.019588027149439,0.119178429245949,0.045809295028448,0.022850316017866,0.052755173295736,-0.184378907084465,-0.100484274327755,-0.058940526098013,-0.008903894573450) * FEATURE4_texOff(vec2(1,-1));
res += mat4(0.032461158931255,0.140490904450417,0.369223982095718,-0.032646760344505,-0.112132556736469,-0.018622241914272,0.026967646554112,0.077711239457130,-0.090665340423584,0.023696631193161,0.615660548210144,0.118707261979580,-0.064220592379570,-0.092243649065495,-0.042230635881424,0.160180330276489) * FEATURE4_texOff(vec2(1,0));
res += mat4(0.099824018776417,0.029012953862548,0.006039326079190,0.293764084577560,0.275599986314774,-0.152236729860306,-0.191161766648293,-0.080394536256790,-0.040907219052315,-0.123885437846184,0.204966604709625,0.127884507179260,0.042701900005341,-0.096515953540802,0.083531536161900,-0.030299354344606) * FEATURE4_texOff(vec2(1,1));
res += mat4(0.172400489449501,-0.046671427786350,0.191959634423256,0.095446400344372,0.030289357528090,0.034704845398664,-0.000398289645091,-0.005891181528568,-0.143835991621017,-0.042953439056873,0.130756199359894,-0.060262732207775,-0.113728739321232,0.060678016394377,0.037721481174231,-0.025479804724455) * FEATURE5_texOff(vec2(-1,-1));
res += mat4(0.181152760982513,0.077891819179058,0.276640862226486,0.029196033254266,-0.077576972544193,-0.106564946472645,-0.002789764897898,-0.001749124377966,0.230398193001747,0.012563108466566,-0.039023309946060,0.037444833666086,0.242355078458786,-0.130275294184685,0.078381575644016,0.009202944114804) * FEATURE5_texOff(vec2(-1,0));
res += mat4(0.110840976238251,0.179436370730400,0.243800014257431,0.039758674800396,-0.011252152733505,-0.040843293070793,-0.041449021548033,0.009903524070978,-0.003133353311568,-0.075813688337803,-0.001178671256639,0.313499748706818,0.072339430451393,-0.030589947476983,-0.042608976364136,0.337414920330048) * FEATURE5_texOff(vec2(-1,1));
res += mat4(0.113808803260326,-0.062352515757084,-0.015840938314795,0.183763042092323,-0.078849062323570,-0.013755548745394,-0.128343805670738,-0.002499172929674,0.050242640078068,-0.399670839309692,0.079064317047596,0.199076145887375,0.091136246919632,-0.112669810652733,0.043320417404175,-0.106034636497498) * FEATURE5_texOff(vec2(0,-1));
res += mat4(0.102578021585941,0.154318824410439,0.094436883926392,-0.083740286529064,-0.014467915520072,-0.007584883831441,0.111087627708912,0.003195814788342,-0.461746096611023,0.455387741327286,0.655137002468109,-0.168211564421654,-0.126451939344406,0.022762147709727,0.659363508224487,-0.124278835952282) * FEATURE5_texOff(vec2(0,0));
res += mat4(0.257279396057129,0.095282100141048,-0.033972036093473,0.024813016876578,0.007452798075974,-0.071188673377037,0.105316229164600,-0.025478962808847,-0.043684314936399,-0.080036289989948,0.054902236908674,-0.064297817647457,0.021995283663273,-0.077167682349682,0.014972727745771,0.098714433610439) * FEATURE5_texOff(vec2(0,1));
res += mat4(0.092249482870102,0.064987048506737,-0.114751555025578,-0.069467328488827,0.015316485427320,0.156035870313644,0.074795722961426,0.077821530401707,-0.047593522816896,-0.062636077404022,-0.288955509662628,0.037083093076944,-0.033951751887798,0.058094605803490,-0.078490510582924,-0.036346692591906) * FEATURE5_texOff(vec2(1,-1));
res += mat4(0.119063057005405,-0.013413416221738,-0.312108814716339,-0.145194083452225,-0.020399454981089,-0.082087062299252,-0.028913548216224,0.052462369203568,0.208816826343536,0.004513453692198,-0.724124431610107,-0.154885858297348,-0.018827104941010,0.074260152876377,-0.319750308990479,0.062648944556713) * FEATURE5_texOff(vec2(1,0));
res += mat4(-0.019572628661990,0.133051037788391,-0.150640577077866,-0.180778503417969,0.042906355112791,-0.012843932025135,-0.013728163205087,0.052633855491877,0.225079610943794,-0.133530914783478,-0.110612839460373,-0.222061425447464,0.158249780535698,-0.045590091496706,-0.101331755518913,0.179173186421394) * FEATURE5_texOff(vec2(1,1));
res += mat4(-0.010979798622429,0.297078549861908,0.016834763810039,0.007367438171059,0.017964746803045,-0.002391867805272,-0.026202043518424,-0.005879434756935,-0.138081133365631,-0.075148776173592,0.053550746291876,-0.159999206662178,-0.094987317919731,0.141349121928215,-0.016334619373083,0.063680112361908) * FEATURE6_texOff(vec2(-1,-1));
res += mat4(-0.101785793900490,-0.167910382151604,0.098544165492058,0.333969086408615,-0.097064353525639,-0.097209826111794,-0.055616132915020,-0.057099167257547,-0.012547118589282,-0.087119847536087,-0.124071978032589,-0.013158049434423,-0.116775155067444,-0.083561792969704,0.051244962960482,-0.105552606284618) * FEATURE6_texOff(vec2(-1,0));
res += mat4(0.010023131035268,-0.082065284252167,0.051415696740150,-0.169586196541786,0.071397952735424,-0.086692526936531,0.016280079260468,0.038244798779488,-0.006734055932611,-0.080187737941742,-0.082594640552998,-0.085251435637474,0.031996354460716,0.086110755801201,0.113187290728092,-0.064348839223385) * FEATURE6_texOff(vec2(-1,1));
res += mat4(-0.000253116042586,-0.083536833524704,-0.006182199344039,-0.315571665763855,-0.063831381499767,-0.007277518045157,-0.062272775918245,-0.112337328493595,-0.099077254533768,0.378494441509247,-0.017329648137093,0.001252739573829,0.021696105599403,0.197364851832390,-0.031877052038908,-0.041976083070040) * FEATURE6_texOff(vec2(0,-1));
res += mat4(-0.094220407307148,-0.034614369273186,-0.277895182371140,0.109509870409966,0.066405639052391,-0.031780529767275,-0.011325080879033,-0.073989078402519,0.276933163404465,-0.305137544870377,-0.024852596223354,0.073012553155422,0.110089920461178,-0.039800111204386,-0.374999105930328,-0.192339271306992) * FEATURE6_texOff(vec2(0,0));
res += mat4(0.022608280181885,-0.071846216917038,0.057749807834625,-0.297773778438568,0.021496618166566,-0.167610704898834,-0.026996016502380,0.195921391248703,-0.093475736677647,0.173335075378418,0.127703145146370,0.210268869996071,0.057178162038326,-0.102345362305641,-0.066583529114723,-0.106360383331776) * FEATURE6_texOff(vec2(0,1));
res += mat4(-0.042717110365629,-0.043625291436911,0.073195725679398,-0.075171768665314,0.053043466061354,-0.110088050365448,0.053126979619265,-0.036552648991346,0.142923161387444,-0.180249497294426,-0.049246586859226,0.035520419478416,-0.052313107997179,-0.139549151062965,-0.009106953628361,-0.001375748892315) * FEATURE6_texOff(vec2(1,-1));
res += mat4(0.092282883822918,0.081205107271671,-0.098271891474724,0.135135218501091,0.047122176736593,-0.175594642758369,-0.023529687896371,-0.022167548537254,-0.122793190181255,0.114602819085121,0.265777558088303,-0.089416652917862,-0.203172698616982,0.131638437509537,0.020937561988831,0.015008546411991) * FEATURE6_texOff(vec2(1,0));
res += mat4(0.140439316630363,0.016535827890038,-0.102767370641232,-0.114815324544907,0.197579652070999,-0.068605542182922,0.043386291712523,0.343627244234085,0.057418275624514,-0.013283612206578,-0.046777080744505,0.056367643177509,-0.093661822378635,-0.022160539403558,-0.151235461235046,0.128423422574997) * FEATURE6_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(0.145654961466789,0.813754200935364,-0.413725167512894,0.015729401260614) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 3.200 * > OUTPUT.h LUMA.h 3.200 * > *
//!COMPONENTS 4
//!BIND MODEL1
//!BIND MODEL2
//!BIND MODEL3
//!BIND MODEL4
//!BIND MODEL5
//!BIND MODEL6
//!SAVE MODEL7
//!DESC [AiUpscale_Medium_4x_Photo] mapping 2_1

vec4 hook()
{
vec4 res = vec4(0.164485156536102,-0.085510253906250,-0.081359535455704,0.095735788345337);
res += mat4(0.062594987452030,0.010205897502601,-0.150112420320511,0.002297325758263,-0.011537644080818,0.121184185147285,-0.139832988381386,-0.095511756837368,-0.121276125311852,0.036465570330620,0.157399922609329,-0.026510231196880,-0.008463134057820,0.019099349156022,0.046695690602064,0.079744860529900) * MODEL1_texOff(vec2(-1,-1));
res += mat4(-0.183905497193336,0.089895993471146,0.012675894424319,0.079478062689304,0.241641476750374,0.319877475500107,-0.274699449539185,0.001580531825311,0.030276529490948,0.124128825962543,0.056490447372198,-0.000383485486964,0.667931258678436,-0.090456008911133,0.001089520868845,0.035261023789644) * MODEL1_texOff(vec2(-1,0));
res += mat4(0.063438676297665,-0.018689071759582,0.032332476228476,0.015145095996559,0.135805144906044,0.298162251710892,0.025304283946753,0.048574563115835,0.201241672039032,0.081483550369740,-0.006513072177768,0.006515027955174,0.007549801841378,-0.008609887212515,0.056439962238073,-0.041416443884373) * MODEL1_texOff(vec2(-1,1));
res += mat4(-0.054576259106398,0.139939397573471,0.071168482303619,0.033862840384245,0.090717837214470,0.154850989580154,0.056120797991753,-0.112155422568321,-0.162163406610489,-0.259018033742905,-0.222881212830544,-0.000375559495296,0.105821043252945,0.075763262808323,0.038825321942568,0.072711981832981) * MODEL1_texOff(vec2(0,-1));
res += mat4(-0.365920960903168,-0.090703502297401,-0.073915310204029,-0.001202441635542,0.025085134431720,-0.291470915079117,0.259665012359619,-0.141691133379936,0.145560920238495,0.057735301554203,-0.090456098318100,0.083226665854454,0.341801375150681,0.396485388278961,-0.031337164342403,-0.593645095825195) * MODEL1_texOff(vec2(0,0));
res += mat4(0.226965442299843,0.035941686481237,0.130612030625343,-0.105195671319962,0.146475031971931,0.163643673062325,0.071609646081924,0.077864438295364,0.287638753652573,0.071947790682316,0.004181438591331,-0.121728770434856,0.120366774499416,0.120543293654919,0.023684864863753,0.143459156155586) * MODEL1_texOff(vec2(0,1));
res += mat4(0.096611678600311,-0.076861768960953,-0.060419928282499,-0.011044665239751,0.246669635176659,0.237243071198463,0.011987649835646,-0.114777907729149,-0.160585761070251,-0.088380023837090,-0.033049065619707,-0.153428331017494,-0.088701665401459,0.146334230899811,0.070308789610863,0.022310363128781) * MODEL1_texOff(vec2(1,-1));
res += mat4(0.353044450283051,-0.045512083917856,-0.007626825943589,-0.131079331040382,0.367873609066010,0.303376674652100,-0.085179895162582,0.078222677111626,0.080921195447445,-0.096471071243286,0.040305685251951,-0.172269016504288,0.193264096975327,-0.069143213331699,-0.072928048670292,0.043576907366514) * MODEL1_texOff(vec2(1,0));
res += mat4(0.116459093987942,0.049766458570957,0.014491145499051,-0.134709671139717,0.359706610441208,0.029096325859427,0.069398418068886,0.037534009665251,0.102606154978275,0.001835652627051,0.112945750355721,-0.016099730506539,-0.104722745716572,-0.035398289561272,0.016040951013565,-0.044903419911861) * MODEL1_texOff(vec2(1,1));
res += mat4(-0.026494625955820,0.103263787925243,0.054630056023598,-0.066815227270126,0.112504862248898,-0.085773408412933,-0.262955218553543,0.024992575868964,-0.078166738152504,-0.048902839422226,-0.099192708730698,0.014204560779035,-0.210462346673012,0.066655941307545,-0.209362044930458,-0.050766076892614) * MODEL2_texOff(vec2(-1,-1));
res += mat4(0.142906606197357,-0.046131271868944,-0.058372870087624,-0.066567160189152,-0.072954893112183,0.046317782253027,0.124724656343460,-0.075575731694698,0.146670222282410,0.068592652678490,-0.067338064312935,0.022290041670203,-0.264284759759903,-0.019395079463720,0.213721767067909,0.109519310295582) * MODEL2_texOff(vec2(-1,0));
res += mat4(-0.083648070693016,0.014322435483336,0.075326226651669,-0.014467432163656,-0.080271542072296,0.037268828600645,0.008224928751588,0.003752976190299,-0.188523665070534,0.130524665117264,-0.031393311917782,0.057432103902102,0.198473006486893,0.099586375057697,0.135976895689964,0.149356648325920) * MODEL2_texOff(vec2(-1,1));
res += mat4(-0.016565797850490,0.074123799800873,0.047963529825211,0.042724665254354,-0.072057291865349,0.191598579287529,-0.003900095820427,-0.015730489045382,0.100021168589592,-0.016916291788220,0.010835780762136,-0.090254977345467,0.040732130408287,0.086350165307522,-0.270025551319122,-0.029257098212838) * MODEL2_texOff(vec2(0,-1));
res += mat4(0.140321314334869,-0.352698355913162,-0.100450403988361,0.219085797667503,0.161807373166084,-0.418370813131332,0.037062164396048,0.315821796655655,0.144977807998657,-0.223343178629875,-0.065147392451763,-0.281478762626648,-0.206828042864799,-0.170992538332939,0.010657157748938,0.263127505779266) * MODEL2_texOff(vec2(0,0));
res += mat4(0.037506733089685,0.009673159569502,0.159887403249741,-0.049901466816664,0.144047617912292,0.114715918898582,-0.025723785161972,-0.342095136642456,-0.088555544614792,0.065967932343483,-0.089267030358315,0.106983572244644,0.214281246066093,-0.110046274960041,0.122038990259171,-0.073001734912395) * MODEL2_texOff(vec2(0,1));
res += mat4(-0.115601107478142,-0.049894914031029,-0.150694429874420,0.145188912749290,-0.071011193096638,-0.163891762495041,-0.012332666665316,0.043865561485291,-0.030539212748408,-0.247011378407478,-0.179011777043343,-0.092195034027100,-0.025977063924074,-0.096405565738678,-0.125590950250626,0.009833492338657) * MODEL2_texOff(vec2(1,-1));
res += mat4(-0.115769982337952,-0.095255449414253,-0.002707274630666,0.146530047059059,0.090465523302555,0.332581222057343,0.047735176980495,-0.133949905633926,0.006908249109983,-0.228811860084534,-0.146268129348755,-0.081327289342880,0.026699623093009,-0.018197493627667,0.026987936347723,0.111661456525326) * MODEL2_texOff(vec2(1,0));
res += mat4(-0.190768957138062,0.147260501980782,0.073960252106190,0.043725728988647,0.023818803951144,0.161540985107422,-0.033150091767311,-0.042204760015011,-0.272747278213501,0.234825208783150,-0.085620880126953,0.020978854969144,0.124995969235897,0.024841908365488,0.088539123535156,-0.027228765189648) * MODEL2_texOff(vec2(1,1));
res += mat4(-0.046523425728083,-0.034945581108332,-0.082851737737656,0.063688553869724,0.008016598410904,0.072408579289913,-0.049044899642467,0.037362977862358,0.015292191877961,-0.114008881151676,-0.283893018960953,0.034111402928829,-0.131379157304764,0.148146197199821,0.039140813052654,0.085243463516235) * MODEL3_texOff(vec2(-1,-1));
res += mat4(-0.159040883183479,0.031829562038183,0.093769818544388,0.087194621562958,0.044994447380304,-0.074457667768002,0.006271360907704,0.115449100732803,-0.257672905921936,-0.059378717094660,-0.022960340604186,0.128321260213852,0.006389979738742,0.047726791352034,0.026625597849488,0.204108953475952) * MODEL3_texOff(vec2(-1,0));
res += mat4(-0.144379332661629,0.100932292640209,-0.157925441861153,0.052906956523657,-0.124987356364727,-0.081117257475853,0.118064954876900,0.137250334024429,-0.043456494808197,-0.052924253046513,-0.027128819376230,0.050533518195152,-0.031520154327154,0.220024034380913,-0.148631200194359,0.117523632943630) * MODEL3_texOff(vec2(-1,1));
res += mat4(0.022485764697194,-0.121282756328583,0.050290111452341,-0.129038557410240,0.127409130334854,-0.177092611789703,-0.133135005831718,0.028195679187775,-0.443348646163940,0.145113140344620,-0.143249168992043,-0.224365934729576,0.244762018322945,0.091231591999531,0.195061370730400,0.139433026313782) * MODEL3_texOff(vec2(0,-1));
res += mat4(-0.146687030792236,-0.179564207792282,0.013384967111051,-0.244927138090134,-0.013332144357264,-0.129017204046249,-0.131786957383156,0.093440838158131,-0.527126133441925,0.160826608538628,0.051691617816687,0.295660674571991,0.193192929029465,-0.215062871575356,0.008331953547895,-0.181831881403923) * MODEL3_texOff(vec2(0,0));
res += mat4(-0.057538572698832,-0.086071923375130,0.091198317706585,-0.020941773429513,0.008713275194168,0.051597189158201,0.107868038117886,-0.180840194225311,0.010651996359229,0.042895026504993,0.055201631039381,0.010561333969235,0.052132807672024,-0.062473837286234,-0.047023419290781,-0.238394424319267) * MODEL3_texOff(vec2(0,1));
res += mat4(-0.046371825039387,-0.088214591145515,-0.007985862903297,0.031501926481724,-0.020315997302532,-0.136820062994957,-0.059870623052120,0.103604242205620,-0.087984591722488,-0.393254607915878,-0.060812395066023,0.015562185086310,0.135924741625786,0.006900065112859,-0.097966261208057,-0.016869002953172) * MODEL3_texOff(vec2(1,-1));
res += mat4(0.026530174538493,0.199749693274498,-0.035638935863972,0.184777945280075,0.034376047551632,-0.240739583969116,0.023179505020380,0.136565536260605,-0.096389584243298,-0.034183759242296,-0.059097781777382,0.038033515214920,0.131417438387871,-0.015630783513188,-0.028365634381771,-0.195306912064552) * MODEL3_texOff(vec2(1,0));
res += mat4(0.041584875434637,-0.036485064774752,-0.011712742969394,0.070874899625778,-0.083541922271252,-0.051529042422771,0.057371784001589,-0.011044971644878,0.068709887564182,-0.065442174673080,-0.043400228023529,-0.043037928640842,-0.113248869776726,0.001850556698628,0.063003085553646,0.004949406720698) * MODEL3_texOff(vec2(1,1));
res += mat4(0.117286272346973,-0.027609869837761,-0.218123912811279,0.003689985256642,0.016455890610814,-0.174979180097580,-0.133713468909264,-0.050630684942007,0.045094441622496,-0.000536685460247,-0.099664434790611,0.089440159499645,-0.047384571284056,-0.016576588153839,-0.070810988545418,-0.029866866767406) * MODEL4_texOff(vec2(-1,-1));
res += mat4(-0.075686976313591,-0.131606653332710,-0.082137137651443,0.120311237871647,0.095257736742496,-0.056798946112394,0.083616822957993,-0.172386422753334,0.006422491278499,0.095829211175442,0.053088333457708,0.196982041001320,0.123581819236279,0.021633801981807,-0.009745754301548,-0.038542270660400) * MODEL4_texOff(vec2(-1,0));
res += mat4(0.095134586095810,0.070998370647430,0.046215455979109,-0.055593341588974,0.172806963324547,0.107635125517845,0.024764884263277,-0.037650462239981,-0.052526507526636,-0.049689833074808,0.036784727126360,0.173548683524132,-0.013261964544654,0.071069814264774,-0.021139005199075,0.038044340908527) * MODEL4_texOff(vec2(-1,1));
res += mat4(-0.093945726752281,-0.179727897047997,-0.101397350430489,-0.063793167471886,-0.152881234884262,0.312627434730530,-0.072632491588593,-0.032220285385847,0.030930772423744,-0.061882290989161,-0.107450291514397,0.089383348822594,0.118168212473392,-0.084805242717266,0.231012806296349,0.286123871803284) * MODEL4_texOff(vec2(0,-1));
res += mat4(-0.045962646603584,-0.235526680946350,0.024866091087461,-0.105736665427685,-0.364489257335663,-0.423609793186188,0.020813807845116,0.048779886215925,-0.143250331282616,0.280249863862991,-0.220534354448318,-0.169037714600563,-0.087521232664585,0.019359124824405,0.231837078928947,0.006982835475355) * MODEL4_texOff(vec2(0,0));
res += mat4(-0.246840968728065,-0.028204727917910,-0.027117475867271,-0.057270199060440,0.027770774438977,0.016648329794407,0.004530907608569,0.002109546447173,-0.117811523377895,-0.058711878955364,0.035495042800903,0.095577873289585,-0.145123258233070,0.045897409319878,0.058483235538006,0.083772398531437) * MODEL4_texOff(vec2(0,1));
res += mat4(0.155490964651108,0.249136120080948,-0.041173838078976,-0.035534571856260,-0.129601508378983,-0.136481627821922,0.114428773522377,-0.068805761635303,-0.018617393448949,0.146060153841972,-0.093104660511017,0.005728597287089,-0.027908029034734,0.015450097620487,0.052563443779945,-0.063794851303101) * MODEL4_texOff(vec2(1,-1));
res += mat4(0.164025366306305,-0.046442002058029,0.017669618129730,-0.049080919474363,-0.058801360428333,0.093563549220562,-0.073350183665752,-0.052258491516113,-0.181992784142494,0.138183906674385,0.053371455520391,0.005388055928051,-0.019285347312689,-0.033545155078173,0.125028878450394,-0.181288108229637) * MODEL4_texOff(vec2(1,0));
res += mat4(0.246135696768761,-0.024042697623372,0.154612869024277,-0.042262915521860,0.080921798944473,0.180338740348816,-0.048137102276087,0.062053658068180,-0.057043898850679,-0.018233787268400,0.037714999169111,-0.200751677155495,0.041801650077105,-0.049515239894390,0.118181884288788,-0.059631638228893) * MODEL4_texOff(vec2(1,1));
res += mat4(-0.184902191162109,0.003556684823707,0.236186310648918,-0.032794337719679,0.048369899392128,0.032608289271593,0.133983269333839,-0.007655337918550,0.051025245338678,-0.070628188550472,0.175817474722862,-0.084002092480659,0.039540577679873,0.056075692176819,0.050134874880314,0.029859643429518) * MODEL5_texOff(vec2(-1,-1));
res += mat4(0.096290022134781,-0.066321156919003,0.138990551233292,-0.054610457271338,-0.249405041337013,-0.134871408343315,-0.072332389652729,-0.048364385962486,0.168420076370239,-0.009725635871291,-0.025389136746526,-0.053065828979015,-0.158176392316818,0.025975104421377,-0.120278134942055,-0.051921740174294) * MODEL5_texOff(vec2(-1,0));
res += mat4(0.119545906782150,0.036230187863111,0.092704281210899,-0.029499769210815,0.056864943355322,-0.115641944110394,-0.053062763065100,-0.034778829663992,-0.178822129964828,0.039784848690033,0.043416868895292,-0.083186857402325,0.025776525959373,0.038976036012173,0.013875459320843,-0.009005635976791) * MODEL5_texOff(vec2(-1,1));
res += mat4(-0.600661575794220,-0.178204759955406,0.367800951004028,0.017123306170106,-0.118789166212082,0.174455747008324,-0.041143611073494,0.155112236738205,0.080994807183743,0.030093574896455,0.251484274864197,0.221600025892258,0.073820091784000,-0.137579932808876,0.099278718233109,0.057099975645542) * MODEL5_texOff(vec2(0,-1));
res += mat4(-0.125534683465958,-0.023554973304272,0.101126089692116,-0.306834906339645,-0.036875400692225,-0.110404781997204,-0.072638586163521,0.031650990247726,0.232900395989418,-0.222635149955750,-0.112033084034920,0.333208769559860,-0.351337373256683,0.082012683153152,-0.158634990453720,-0.231391549110413) * MODEL5_texOff(vec2(0,0));
res += mat4(0.147856399416924,-0.032380357384682,-0.043434135615826,0.037669472396374,-0.221126511693001,0.007073683664203,-0.178561151027679,-0.036138698458672,0.091677725315094,0.139591351151466,0.076007410883904,0.004609711933881,0.158810943365097,-0.041981846094131,-0.107093922793865,0.165146321058273) * MODEL5_texOff(vec2(0,1));
res += mat4(-0.074117250740528,0.239071771502495,0.045378573238850,0.058702681213617,-0.074479445815086,0.147090494632721,-0.086707986891270,0.083870962262154,-0.253178805112839,0.159293651580811,-0.203155562281609,-0.055818602442741,-0.059554573148489,0.119661480188370,0.035180389881134,0.005943817552179) * MODEL5_texOff(vec2(1,-1));
res += mat4(0.041300714015961,-0.001870757434517,0.021050436422229,0.098779916763306,0.058217342942953,-0.049150735139847,-0.107914701104164,0.068055406212807,-0.084207050502300,-0.363597661256790,-0.006767717655748,-0.079263508319855,-0.146516099572182,-0.053797218948603,-0.058085918426514,-0.214176341891289) * MODEL5_texOff(vec2(1,0));
res += mat4(0.063255824148655,0.031384360045195,0.003767477115616,0.032184693962336,-0.004908223636448,-0.005628393962979,0.076961688697338,0.014690804295242,-0.067957051098347,0.045906774699688,-0.016663944348693,0.026309994980693,0.062223121523857,0.073442727327347,-0.123593918979168,0.055133413523436) * MODEL5_texOff(vec2(1,1));
res += mat4(0.051012285053730,-0.031896069645882,-0.026261277496815,0.043010819703341,0.069008409976959,-0.047295939177275,0.077350854873657,-0.106940507888794,-0.427266567945480,-0.084749251604080,-0.248261764645576,-0.150123581290245,-0.207082793116570,-0.071603104472160,0.087262846529484,0.011796782724559) * MODEL6_texOff(vec2(-1,-1));
res += mat4(-0.046096533536911,0.043477337807417,0.002476684749126,0.090616531670094,-0.084094069898129,0.008534004911780,-0.184073820710182,0.066527187824249,-0.913738369941711,0.053431905806065,0.147204175591469,-0.253165781497955,-0.040749583393335,0.066094651818275,0.097976557910442,-0.075239174067974) * MODEL6_texOff(vec2(-1,0));
res += mat4(0.156079545617104,0.047154270112514,-0.013819285668433,-0.066356033086777,-0.017339037731290,-0.085934855043888,0.126351118087769,0.175259053707123,-0.129957228899002,-0.067557372152805,0.046926993876696,-0.061544939875603,0.124436914920807,-0.015724996104836,0.009422734379768,0.029429562389851) * MODEL6_texOff(vec2(-1,1));
res += mat4(0.087521694600582,-0.011141906492412,-0.131871134042740,0.014719164930284,0.019034316763282,0.039756536483765,0.035429880023003,0.143927440047264,-0.040637418627739,-0.297956615686417,0.010552274063230,-0.013618679717183,-0.094980053603649,-0.135372787714005,0.043695565313101,0.037500172853470) * MODEL6_texOff(vec2(0,-1));
res += mat4(-0.140608415007591,-0.025148138403893,0.283722251653671,-0.043043389916420,-0.218853950500488,0.288040012121201,-0.477175205945969,-0.255060166120529,-0.351211339235306,0.394139409065247,0.010398686863482,0.068085886538029,0.330725193023682,0.068144679069519,-0.122891105711460,0.093431830406189) * MODEL6_texOff(vec2(0,0));
res += mat4(0.136308863759041,0.128844931721687,0.086264416575432,-0.166648879647255,-0.064843140542507,0.139689639210701,0.285771369934082,0.393207997083664,0.036542493849993,0.118023559451103,0.012787528336048,0.086678661406040,0.230272918939590,-0.005746019072831,0.002286555245519,0.030599532648921) * MODEL6_texOff(vec2(0,1));
res += mat4(-0.074833132326603,0.020288981497288,-0.044552687555552,-0.200877577066422,-0.095421962440014,0.148496642708778,-0.052200470119715,0.058669861406088,0.050619930028915,0.045905876904726,0.004794353619218,-0.006104824133217,-0.009402848780155,-0.196347638964653,-0.033271443098783,-0.120055831968784) * MODEL6_texOff(vec2(1,-1));
res += mat4(-0.209865957498550,-0.311279177665710,0.100374095141888,-0.333496034145355,-0.060895543545485,-0.238288193941116,0.027847083285451,-0.155278757214546,0.094553731381893,0.026963645592332,0.050827458500862,-0.095617674291134,0.010985483415425,0.028352012857795,0.017004104331136,-0.017572492361069) * MODEL6_texOff(vec2(1,0));
res += mat4(0.158322930335999,-0.051394570618868,0.006478725932539,-0.112599618732929,0.008064159192145,0.059557549655437,0.104166232049465,-0.216322660446167,0.090588167309761,0.002067603403702,0.015689607709646,-0.074833840131760,0.177609071135521,0.114638566970825,0.112249724566936,-0.021088572219014) * MODEL6_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(-0.047714423388243,0.094509564340115,-0.214308097958565,0.760296285152435) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 3.200 * > OUTPUT.h LUMA.h 3.200 * > *
//!COMPONENTS 4
//!BIND MODEL1
//!BIND MODEL2
//!BIND MODEL3
//!BIND MODEL4
//!BIND MODEL5
//!BIND MODEL6
//!SAVE MODEL8
//!DESC [AiUpscale_Medium_4x_Photo] mapping 2_2

vec4 hook()
{
vec4 res = vec4(-0.031818743795156,-0.041357778012753,0.129023686051369,0.188036292791367);
res += mat4(-0.112406305968761,-0.133957058191299,0.023439576849341,-0.024605145677924,-0.047541417181492,0.073042973875999,-0.029091522097588,0.136959955096245,0.196344882249832,-0.078633159399033,0.053330611437559,-0.170119360089302,0.029272424057126,-0.074626736342907,0.051337167620659,-0.138856872916222) * MODEL1_texOff(vec2(-1,-1));
res += mat4(-0.013062760233879,0.069863162934780,-0.063863284885883,-0.057548217475414,0.043062794953585,0.045904852449894,-0.153697237372398,0.121898606419563,0.071542590856552,0.039821241050959,-0.052631266415119,0.128637537360191,-0.075512357056141,0.099900662899017,0.067665591835976,0.366996765136719) * MODEL1_texOff(vec2(-1,0));
res += mat4(0.000864275672939,-0.074646934866905,0.082135707139969,0.185342520475388,0.015722747892141,-0.069551035761833,0.027521286159754,0.110240556299686,-0.032228447496891,0.077873997390270,-0.021035397425294,0.123981751501560,0.022659283131361,-0.215994954109192,0.093789458274841,-0.136835455894470) * MODEL1_texOff(vec2(-1,1));
res += mat4(-0.101023510098457,-0.031429465860128,-0.097103074193001,-0.121805049479008,0.033506684005260,0.009393574669957,-0.087091282010078,-0.181656464934349,0.062297914177179,-0.007139164023101,-0.068847544491291,-0.050886470824480,-0.126563459634781,0.430921643972397,-0.085552364587784,-0.074440486729145) * MODEL1_texOff(vec2(0,-1));
res += mat4(0.081683561205864,0.020720295608044,0.040975239127874,-0.250765979290009,-0.104922145605087,0.221260994672775,-0.132723987102509,-0.228213146328926,0.024920854717493,-0.004174370784312,-0.075311250984669,-0.057503420859575,0.036856111139059,0.275156915187836,-0.242891252040863,0.264744758605957) * MODEL1_texOff(vec2(0,0));
res += mat4(0.062443245202303,0.002379156881943,0.122088782489300,0.007028131745756,-0.029154537245631,-0.138254910707474,-0.245612829923630,0.007478175219148,0.035581860691309,0.101370103657246,0.013427508063614,0.273512274026871,0.021663419902325,0.162291109561920,0.158582955598831,-0.122176527976990) * MODEL1_texOff(vec2(0,1));
res += mat4(-0.051504749804735,-0.099286273121834,0.127418726682663,-0.192181646823883,-0.060315344482660,0.143858999013901,-0.118910357356071,0.038836281746626,-0.092819258570671,0.015431139618158,0.031388748437166,-0.430003106594086,0.051549479365349,0.181253537535667,-0.152918040752411,-0.157143980264664) * MODEL1_texOff(vec2(1,-1));
res += mat4(-0.026275034993887,0.046954881399870,0.114867918193340,-0.199529826641083,-0.123979635536671,0.103014290332794,-0.107916936278343,0.090508602559566,0.038553602993488,0.104594208300114,-0.095529049634933,-0.268391251564026,0.109527185559273,0.147161975502968,-0.052852705121040,0.167969003319740) * MODEL1_texOff(vec2(1,0));
res += mat4(0.047351192682981,0.124583996832371,0.112392589449883,0.145102068781853,0.039451554417610,0.060019690543413,0.019068589434028,-0.191605255007744,0.093317501246929,0.044779371470213,-0.035572752356529,0.143681019544601,-0.064102448523045,-0.052408210933208,-0.064999192953110,0.056046463549137) * MODEL1_texOff(vec2(1,1));
res += mat4(0.117253966629505,0.065398544073105,0.033151827752590,0.001486181863584,0.092379622161388,-0.222594112157822,0.130205586552620,0.028547573834658,-0.149050131440163,0.246577799320221,0.069859445095062,-0.031436458230019,-0.124170951545238,0.035174474120140,0.081529252231121,-0.157804399728775) * MODEL2_texOff(vec2(-1,-1));
res += mat4(0.228174582123756,-0.005539998412132,0.022829754278064,0.040269352495670,-0.073863320052624,0.013461739756167,-0.255302608013153,0.025730479508638,-0.175542607903481,0.102027028799057,-0.018551981076598,0.109112158417702,-0.099027119576931,0.040237586945295,-0.200722172856331,0.105761870741844) * MODEL2_texOff(vec2(-1,0));
res += mat4(-0.100054889917374,0.008686058223248,0.055310871452093,-0.063059292733669,-0.082285039126873,0.093995332717896,-0.008247991092503,0.018942806869745,-0.259183198213577,0.386334449052811,-0.008316045626998,0.053665578365326,0.165392175316811,-0.291675984859467,-0.047910410910845,0.025814896449447) * MODEL2_texOff(vec2(-1,1));
res += mat4(0.097125910222530,-0.212252274155617,-0.101770192384720,0.032415978610516,0.111269004642963,0.115590400993824,0.019479360431433,0.065242677927017,0.125604614615440,-0.001826197723858,-0.049597360193729,0.050565004348755,-0.114365115761757,-0.012640208937228,-0.076765432953835,0.069042727351189) * MODEL2_texOff(vec2(0,-1));
res += mat4(0.916674256324768,0.037570558488369,0.077322244644165,0.030495621263981,-0.262508302927017,0.023448694497347,0.201766774058342,0.025733418762684,0.189902469515800,-0.065752901136875,0.555854797363281,0.195683360099792,-0.254731148481369,0.445572137832642,0.290160328149796,0.019245676696301) * MODEL2_texOff(vec2(0,0));
res += mat4(-0.050380513072014,-0.051666323095560,-0.038435369729996,0.101672977209091,0.089612521231174,-0.173434436321259,-0.141775220632553,-0.236065939068794,-0.181047201156616,0.345827490091324,-0.148121356964111,-0.126915723085403,0.028626196086407,-0.034026868641376,0.056931260973215,-0.005267318803817) * MODEL2_texOff(vec2(0,1));
res += mat4(-0.141775384545326,-0.070025712251663,-0.034207515418530,0.096006751060486,-0.070902496576309,0.207050278782845,0.126927629113197,0.012970664538443,0.045134134590626,0.184501782059669,0.038679789751768,-0.027497455477715,0.004532899707556,-0.031419470906258,0.029589837417006,0.007160584907979) * MODEL2_texOff(vec2(1,-1));
res += mat4(0.016854930669069,0.017735304310918,-0.022390870377421,-0.232713475823402,0.175027728080750,-0.071548528969288,-0.168234139680862,-0.072291992604733,-0.058486931025982,0.277139931917191,0.078966438770294,-0.023535890504718,-0.040669351816177,-0.074764706194401,0.076456002891064,-0.032603263854980) * MODEL2_texOff(vec2(1,0));
res += mat4(-0.161860242486000,-0.036387365311384,-0.103301495313644,-0.118134945631027,0.127077788114548,0.025530656799674,-0.006958475336432,-0.107779212296009,-0.188012436032295,0.428099632263184,-0.146283194422722,-0.122568503022194,-0.021777952089906,-0.122704222798347,0.006990190595388,-0.074150785803795) * MODEL2_texOff(vec2(1,1));
res += mat4(-0.091082505881786,-0.031881574541330,-0.056506093591452,0.080802656710148,0.024704903364182,-0.047951005399227,0.000608866859693,0.072746366262436,0.040575411170721,-0.301919639110565,-0.027625199407339,-0.333021163940430,0.113829798996449,0.016277540475130,0.220338404178619,-0.057802785187960) * MODEL3_texOff(vec2(-1,-1));
res += mat4(-0.029836015775800,0.074055023491383,-0.038121320307255,0.043004140257835,-0.093014948070049,-0.028804602101445,0.055763430893421,-0.002827744465321,0.056588679552078,0.086365222930908,-0.055380422621965,-0.005072077270597,-0.132621407508850,0.255440354347229,-0.116641968488693,0.108619295060635) * MODEL3_texOff(vec2(-1,0));
res += mat4(-0.100623294711113,0.075426667928696,0.052078045904636,-0.042980544269085,-0.012301163747907,-0.043430991470814,-0.118699170649052,-0.195662051439285,0.002240954898298,0.082364052534103,-0.017985420301557,-0.038010701537132,0.144315093755722,0.070872254669666,0.001529104309157,-0.027641039341688) * MODEL3_texOff(vec2(-1,1));
res += mat4(0.217069998383522,-0.229483991861343,-0.189772531390190,-0.006519215181470,0.121297515928745,-0.001179639250040,0.100811213254929,-0.121564917266369,-0.074041470885277,-0.528599619865417,-0.670474886894226,-0.186459496617317,-0.170881718397141,0.096323840320110,0.089196957647800,-0.106402978301048) * MODEL3_texOff(vec2(0,-1));
res += mat4(0.079344786703587,-0.058045834302902,0.128675967454910,0.105698950588703,0.322474420070648,0.064868710935116,0.384626924991608,0.128467053174973,-0.379814684391022,-0.005973035935313,0.208767786622047,-0.036344882100821,0.176011830568314,-0.130305469036102,0.107684798538685,-0.052629675716162) * MODEL3_texOff(vec2(0,0));
res += mat4(-0.171658009290695,0.070806331932545,-0.013098380528390,0.243377178907394,-0.327640831470490,0.150232583284378,-0.010949047282338,0.071209922432899,0.028028056025505,0.087848752737045,-0.086523264646530,0.219898417592049,-0.039623122662306,-0.095030888915062,-0.104542568325996,0.061703409999609) * MODEL3_texOff(vec2(0,1));
res += mat4(-0.001652447623201,-0.517978787422180,-0.222650006413460,0.123979412019253,0.031304087489843,-0.082380630075932,-0.076765194535255,0.085813224315643,-0.170494928956032,0.019871557131410,-0.216597840189934,-0.760943233966827,0.031968619674444,0.242016687989235,0.020076384767890,-0.132491335272789) * MODEL3_texOff(vec2(1,-1));
res += mat4(0.172477424144745,-0.511533021926880,-0.105449505150318,-0.010176507756114,-0.008127436973155,-0.056907292455435,-0.070302531123161,-0.225365698337555,-0.152573630213737,-0.058985430747271,0.017445158213377,-0.206411689519882,0.055963441729546,0.289474248886108,0.048148810863495,-0.177865430712700) * MODEL3_texOff(vec2(1,0));
res += mat4(0.152142241597176,-0.159486889839172,-0.090181700885296,-0.102269671857357,-0.069287061691284,-0.068514145910740,-0.085424207150936,-0.080402307212353,-0.036100711673498,-0.018817022442818,-0.010713892988861,0.121980078518391,0.094002880156040,0.053664728999138,-0.126023083925247,0.303984791040421) * MODEL3_texOff(vec2(1,1));
res += mat4(0.223451897501945,-0.024770280346274,-0.179188385605812,-0.132691130042076,-0.011060767807066,0.175116032361984,-0.090162970125675,-0.015679676085711,0.107588872313499,-0.103196695446968,-0.036316886544228,0.082975745201111,-0.003889976069331,0.134971797466278,-0.007099746260792,-0.002167835365981) * MODEL4_texOff(vec2(-1,-1));
res += mat4(-0.171011373400688,0.720538735389709,0.532392859458923,-0.030610302463174,0.256195485591888,-0.259560704231262,-0.445375353097916,0.098959147930145,0.100932456552982,-0.207322031259537,0.001834767172113,0.036840338259935,-0.185053825378418,0.279169410467148,0.188241064548492,-0.067352190613747) * MODEL4_texOff(vec2(-1,0));
res += mat4(-0.255464881658554,-0.030630625784397,0.063470669090748,-0.049934666603804,-0.117367677390575,0.056490074843168,-0.042562793940306,0.185539439320564,0.112582832574844,-0.163920953869820,0.097243092954159,-0.051612220704556,0.039245154708624,-0.070393353700638,0.022946067154408,0.023821255192161) * MODEL4_texOff(vec2(-1,1));
res += mat4(0.007462627254426,-0.086763069033623,-0.168366745114326,-0.231969282031059,-0.113404214382172,0.162518545985222,-0.040945935994387,0.000263857305981,0.071921020746231,-0.046142820268869,-0.029305754229426,0.000892481300980,-0.016249498352408,0.383530437946320,-0.028518645092845,0.051248595118523) * MODEL4_texOff(vec2(0,-1));
res += mat4(-0.138440907001495,-0.074696198105812,-0.166645973920822,0.054405458271503,-0.074167542159557,0.117703095078468,0.201103195548058,-0.286778092384338,0.054431244730949,-0.332901954650879,0.096399150788784,0.142671361565590,-0.129039108753204,0.495143949985504,0.517122566699982,-0.243834599852562) * MODEL4_texOff(vec2(0,0));
res += mat4(0.027705427259207,-0.096133455634117,-0.018592810258269,0.015036292374134,0.040743712335825,0.051647167652845,0.010770295746624,0.044680900871754,0.133152306079865,-0.027950415387750,-0.003000617492944,-0.135216712951660,-0.241767078638077,-0.181439340114594,-0.248428583145142,-0.097933962941170) * MODEL4_texOff(vec2(0,1));
res += mat4(0.110552765429020,-0.056624069809914,-0.018899105489254,-0.034110911190510,0.052922338247299,-0.002966528525576,-0.091954395174980,-0.079137779772282,0.226466178894043,-0.042536243796349,0.070763923227787,0.190143853425980,0.174154222011566,-0.041509412229061,-0.136489152908325,-0.068281956017017) * MODEL4_texOff(vec2(1,-1));
res += mat4(-0.050939999520779,-0.191911876201630,0.132162362337112,-0.042378894984722,-0.013984166085720,0.253096669912338,-0.148350059986115,0.234517619013786,-0.000265555514488,0.118694834411144,0.078670084476471,0.006336070597172,0.117896832525730,-0.417626351118088,-0.179335862398148,-0.119135200977325) * MODEL4_texOff(vec2(1,0));
res += mat4(0.085120618343353,-0.105237267911434,0.102708809077740,0.124317079782486,-0.007993155159056,0.072652190923691,0.004267291165888,0.084421172738075,-0.168231189250946,0.036080162972212,0.061664815992117,0.028041223064065,0.151852533221245,-0.276166558265686,0.005577716510743,-0.077927350997925) * MODEL4_texOff(vec2(1,1));
res += mat4(0.147196710109711,-0.120182201266289,-0.002671107882634,0.112638086080551,-0.114478260278702,-0.115704730153084,0.030053256079555,-0.121614471077919,0.063790977001190,0.002490196842700,0.043719351291656,0.051436588168144,-0.018897011876106,0.046436484903097,-0.095517531037331,0.099105775356293) * MODEL5_texOff(vec2(-1,-1));
res += mat4(-0.032802689820528,-0.328858911991119,0.108220808207989,0.001986795337871,-0.034143149852753,-0.081304989755154,0.185297310352325,-0.086401514708996,0.150260359048843,-0.154283046722412,-0.134982794523239,-0.071885339915752,0.039486180990934,-0.057426683604717,0.112984038889408,-0.141129955649376) * MODEL5_texOff(vec2(-1,0));
res += mat4(-0.012347877956927,-0.020342580974102,-0.050307236611843,0.193521812558174,-0.181637495756149,-0.157996758818626,-0.107634037733078,-0.080085203051567,-0.076342970132828,-0.005052781198174,0.001767158042639,0.007549909874797,-0.023430643603206,0.120455466210842,-0.035207804292440,0.188900381326675) * MODEL5_texOff(vec2(-1,1));
res += mat4(-0.687625348567963,-0.000950775691308,0.122834824025631,-0.879717528820038,-0.046179555356503,-0.054758116602898,0.023621169850230,0.053373668342829,0.070406362414360,-0.068489640951157,0.016986224800348,-0.081185899674892,0.044492274522781,-0.008532059378922,0.056077536195517,-0.026188440620899) * MODEL5_texOff(vec2(0,-1));
res += mat4(0.102680884301662,-0.727795422077179,-0.624602854251862,-0.804405093193054,-0.117955811321735,-0.101703576743603,0.003393593709916,0.006801317445934,0.587671458721161,-0.204116791486740,0.034833855926991,0.179135039448738,-0.166051745414734,-0.204470664262772,-0.388508737087250,-0.215517416596413) * MODEL5_texOff(vec2(0,0));
res += mat4(0.135915383696556,-0.083733730018139,-0.008562543429434,-0.199214175343513,-0.031034300103784,0.718622982501984,0.214257150888443,-0.073148541152477,-0.224718526005745,0.098950654268265,-0.149498641490936,-0.144422039389610,0.019407305866480,0.011319507844746,0.173172712326050,0.361307024955750) * MODEL5_texOff(vec2(0,1));
res += mat4(-0.060798801481724,0.079330503940582,-0.080566063523293,-0.313062101602554,0.018473237752914,-0.035119958221912,-0.045999936759472,-0.149648562073708,-0.181648179888725,-0.053884893655777,0.129207536578178,0.155395328998566,0.061163179576397,0.062624424695969,-0.034708339720964,-0.064087726175785) * MODEL5_texOff(vec2(1,-1));
res += mat4(-0.039670761674643,-0.071643099188805,-0.016836009919643,-0.635710597038269,0.028045089915395,0.023701997473836,0.116845026612282,0.223080798983574,-0.361708730459213,0.143914327025414,0.084438100457191,-0.067930527031422,-0.019858652725816,0.113180652260780,-0.066098973155022,-0.232490837574005) * MODEL5_texOff(vec2(1,0));
res += mat4(0.037263803184032,0.002659206045792,0.028545713052154,0.051908448338509,-0.293701827526093,0.118453100323677,-0.006206803489476,0.000966495252214,-0.146254584193230,0.011545566841960,0.050877988338470,0.003321790602058,-0.081138812005520,-0.032775852829218,0.136690333485603,-0.071454554796219) * MODEL5_texOff(vec2(1,1));
res += mat4(-0.060960356146097,-0.000598457525484,-0.097400136291981,-0.016933554783463,0.050446756184101,-0.049816999584436,0.041725836694241,-0.076315596699715,0.004855393432081,-0.206364467740059,0.059525333344936,0.006767699960619,-0.374592542648315,-0.182078078389168,0.081920735538006,-0.050397850573063) * MODEL6_texOff(vec2(-1,-1));
res += mat4(0.142650827765465,-0.119870267808437,-0.002966830506921,0.037952121347189,-0.076057709753513,0.074246011674404,0.046420212835073,0.049709327518940,-0.574794352054596,-0.578831076622009,0.059173338115215,0.016667462885380,0.129118666052818,0.075160279870033,0.108191676437855,0.132356911897659) * MODEL6_texOff(vec2(-1,0));
res += mat4(0.006882492452860,-0.025167085230350,-0.054885741323233,0.051175091415644,0.041747733950615,0.015305598266423,-0.023418065160513,-0.291512072086334,0.061205200850964,0.024341357871890,0.053224213421345,0.070521593093872,-0.000882957829162,0.040663074702024,0.013598942197859,0.194638684391975) * MODEL6_texOff(vec2(-1,1));
res += mat4(0.069328561425209,-0.015840154141188,-0.022016646340489,-0.113288685679436,-0.042560584843159,0.045338626950979,0.067463025450706,0.114775247871876,-0.116588927805424,0.008344734087586,0.080954954028130,-0.055410180240870,0.119753293693066,-0.085366077721119,0.086541026830673,0.063734672963619) * MODEL6_texOff(vec2(0,-1));
res += mat4(-0.142783880233765,-0.148342519998550,-0.175018280744553,0.035779159516096,0.032705470919609,-0.061152864247561,-0.137373268604279,-0.061779063194990,-0.070269718766212,-0.521975517272949,-0.401636004447937,-0.148812741041183,0.053740218281746,0.198004230856895,-0.197796240448952,-0.058296699076891) * MODEL6_texOff(vec2(0,0));
res += mat4(0.288917958736420,-0.042172763496637,0.183763444423676,0.112207993865013,-0.186269327998161,0.065431609749794,0.246594667434692,-0.071719832718372,0.037919130176306,0.002157247625291,-0.034877423197031,0.172817409038544,0.030181515961885,0.097054481506348,-0.113642193377018,0.028585627675056) * MODEL6_texOff(vec2(0,1));
res += mat4(0.172404944896698,-0.193634897470474,-0.137287855148315,-0.238837152719498,0.057138402014971,0.090984068810940,0.042185891419649,-0.143450722098351,-0.052623186260462,0.171199917793274,-0.027200017124414,0.092326432466507,0.026703100651503,-0.052439231425524,-0.039899181574583,-0.188912689685822) * MODEL6_texOff(vec2(1,-1));
res += mat4(0.339091479778290,-0.210495039820671,-0.006636198610067,-0.100586660206318,0.093949064612389,-0.018348252400756,-0.145664334297180,0.243739977478981,-0.031371667981148,0.034497022628784,0.082358069717884,0.035930059850216,0.016396980732679,-0.124230511486530,-0.153498917818069,-0.114305317401886) * MODEL6_texOff(vec2(1,0));
res += mat4(0.227458178997040,-0.315654486417770,-0.098715275526047,-0.225455284118652,0.041402015835047,-0.021249784156680,-0.132597029209137,0.040517564862967,0.005713593214750,0.012224691919982,-0.009686504490674,0.024733450263739,0.065348304808140,0.066439636051655,0.047869313508272,0.205471456050873) * MODEL6_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(-0.099452994763851,-0.003135994309559,0.371730715036392,0.012332198210061) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 3.200 * > OUTPUT.h LUMA.h 3.200 * > *
//!COMPONENTS 4
//!BIND MODEL1
//!BIND MODEL2
//!BIND MODEL3
//!BIND MODEL4
//!BIND MODEL5
//!BIND MODEL6
//!SAVE MODEL9
//!DESC [AiUpscale_Medium_4x_Photo] mapping 2_3

vec4 hook()
{
vec4 res = vec4(0.032648142427206,0.118963785469532,0.237082168459892,0.083757027983665);
res += mat4(-0.371135652065277,0.001188961905427,0.078881949186325,0.104122079908848,0.043366365134716,0.258799612522125,-0.148741543292999,0.150652170181274,0.332178503274918,0.078337632119656,0.070810690522194,0.051034804433584,-0.017288299277425,-0.039296902716160,0.106314696371555,0.000772193772718) * MODEL1_texOff(vec2(-1,-1));
res += mat4(-0.338941395282745,-0.037917297333479,-0.193037688732147,-0.112045861780643,0.002180448034778,0.284104973077774,-0.016556043177843,-0.077016718685627,-0.020553061738610,-0.071067944169044,0.035925999283791,-0.004924481268972,-0.116308696568012,-0.094366945326328,-0.041795529425144,0.004043369553983) * MODEL1_texOff(vec2(-1,0));
res += mat4(-0.286635965108871,0.009406317025423,-0.023355618119240,-0.067925363779068,-0.258300513029099,0.075847208499908,-0.125097870826721,-0.153285712003708,-0.169360622763634,-0.063414447009563,0.062932230532169,-0.096209369599819,-0.087086096405983,0.095274433493614,0.011253328993917,0.144301995635033) * MODEL1_texOff(vec2(-1,1));
res += mat4(-0.370990872383118,-0.103937357664108,-0.087508976459503,0.017569584771991,-0.111516319215298,0.165663316845894,0.090838693082333,0.036758873611689,0.129549488425255,-0.021174497902393,0.158398166298866,0.103422306478024,0.069631740450859,0.317063033580780,0.049127597361803,-0.102727591991425) * MODEL1_texOff(vec2(0,-1));
res += mat4(-0.292372047901154,-0.053997065871954,0.096602804958820,-0.046580940485001,-0.031600631773472,0.058026198297739,-0.142504185438156,0.019956404343247,-0.308321267366409,-0.131361767649651,0.050209034234285,0.048869207501411,0.043427117168903,-0.118940345942974,0.008319825865328,-0.305959403514862) * MODEL1_texOff(vec2(0,0));
res += mat4(-0.266502708196640,-0.028193898499012,0.021248184144497,-0.022843776270747,-0.215970933437347,-0.042387850582600,-0.140026569366455,-0.113984264433384,0.000938939687330,-0.018073948100209,0.085835658013821,0.026635741814971,-0.110219553112984,0.237180903553963,0.021791473031044,0.066549204289913) * MODEL1_texOff(vec2(0,1));
res += mat4(-0.562938034534454,-0.032729230821133,-0.021661812439561,0.076579496264458,0.009147033095360,0.129870861768723,0.063855759799480,0.088777601718903,0.415749311447144,-0.068165503442287,-0.052243746817112,0.100964061915874,0.089385159313679,0.006178576964885,0.018959835171700,-0.072175048291683) * MODEL1_texOff(vec2(1,-1));
res += mat4(-0.528778731822968,-0.008962923660874,0.034981790930033,0.045201696455479,0.125223070383072,-0.017488636076450,0.020748313516378,-0.048491835594177,0.073790155351162,0.044417709112167,-0.008559187874198,-0.133322298526764,0.046433366835117,-0.114307627081871,0.138791471719742,-0.035980392247438) * MODEL1_texOff(vec2(1,0));
res += mat4(-0.465993165969849,0.120046459138393,0.072623468935490,0.014922820962965,0.088658101856709,-0.026481773704290,-0.011499577201903,-0.055045422166586,-0.091158777475357,-0.027166718617082,0.082270927727222,0.047217998653650,-0.050208345055580,0.013979143463075,-0.036149527877569,0.008413618430495) * MODEL1_texOff(vec2(1,1));
res += mat4(-0.044506881386042,0.093757987022400,0.024435104802251,-0.171657487750053,-0.301836848258972,-0.085261598229408,-0.357970684766769,0.041172921657562,-0.086197726428509,0.186021938920021,0.240940615534782,-0.013691163621843,-0.002040912862867,0.130174338817596,-0.230824634432793,0.031658250838518) * MODEL2_texOff(vec2(-1,-1));
res += mat4(0.008946247398853,0.149967506527901,0.113288514316082,0.012181157246232,0.138476952910423,0.125757113099098,-0.253358274698257,-0.317540585994720,0.001490978407674,0.152401745319366,0.064635664224625,-0.003025602083653,0.006449041888118,0.139996200799942,-0.465589970350266,-0.458672314882278) * MODEL2_texOff(vec2(-1,0));
res += mat4(0.057647418230772,0.063533768057823,-0.046131201088428,0.052257753908634,0.075361274182796,0.113962791860104,-0.033140197396278,-0.262271434068680,-0.152184352278709,0.063880391418934,0.104042835533619,-0.020398184657097,-0.297244191169739,0.068956546485424,-0.020173877477646,0.101649880409241) * MODEL2_texOff(vec2(-1,1));
res += mat4(0.326687335968018,-0.128832027316093,-0.157779604196548,0.131708532571793,-0.201299235224724,-0.198438078165054,-0.102582357823849,-0.031732104718685,-0.269470155239105,-0.303119868040085,0.039043575525284,-0.007163366768509,0.112192444503307,-0.366446137428284,0.157922700047493,-0.047595687210560) * MODEL2_texOff(vec2(0,-1));
res += mat4(0.025095205754042,-0.155738443136215,-0.037118535488844,-0.143342956900597,0.106614269316196,-0.088839560747147,0.110642582178116,0.180661842226982,-0.130676522850990,-0.208905860781670,-0.168263718485832,-0.297217458486557,0.012869728729129,-0.054386861622334,0.230505093932152,0.021887250244617) * MODEL2_texOff(vec2(0,0));
res += mat4(-0.095642305910587,0.206384062767029,-0.062715113162994,0.327694445848465,-0.053411129862070,0.119100578129292,-0.100867509841919,-0.016619998961687,-0.094444692134857,-0.009332738816738,-0.034629989415407,-0.041892290115356,-0.172379821538925,0.128649771213531,0.113316975533962,0.344218522310257) * MODEL2_texOff(vec2(0,1));
res += mat4(-0.143973872065544,-0.036151010543108,-0.158527910709381,-0.015310658141971,-0.082369253039360,-0.046259306371212,-0.020626939833164,-0.056247372180223,0.046770792454481,0.121136933565140,0.034451305866241,0.050404842942953,0.109012693166733,-0.100154876708984,-0.012795758433640,-0.102516658604145) * MODEL2_texOff(vec2(1,-1));
res += mat4(-0.017549002543092,0.052528582513332,-0.047688957303762,0.018172178417444,-0.540576756000519,0.126938313245773,-0.173887521028519,-0.148864299058914,-0.143685489892960,-0.000273786805337,0.033044099807739,0.046452615410089,-0.194246679544449,0.057547312229872,0.135548651218414,0.088973283767700) * MODEL2_texOff(vec2(1,0));
res += mat4(-0.159605637192726,0.043908845633268,0.047840256243944,-0.027007237076759,-0.025840399786830,-0.044386081397533,0.024385804310441,-0.155193626880646,0.004434172529727,-0.069611623883247,0.069419249892235,-0.015745289623737,0.140074893832207,0.030438123270869,0.014719209633768,0.097369827330112) * MODEL2_texOff(vec2(1,1));
res += mat4(0.148746386170387,0.094639420509338,0.133935153484344,0.188908636569977,0.117079846560955,0.132978022098541,0.065829984843731,-0.035938765853643,0.161464408040047,-0.045742478221655,-0.071591347455978,0.133685857057571,0.041712112724781,-0.029643217101693,0.246866524219513,-0.092107459902763) * MODEL3_texOff(vec2(-1,-1));
res += mat4(-0.007602583151311,0.068463362753391,0.217877775430679,0.186326980590820,0.111147604882717,0.052815593779087,0.243524521589279,0.070990838110447,0.089667528867722,0.060923404991627,-0.002508731093258,-0.092481188476086,0.028259178623557,0.220459058880806,0.044565446674824,-0.052585963159800) * MODEL3_texOff(vec2(-1,0));
res += mat4(0.021317992359400,0.108188033103943,0.056054603308439,0.035592067986727,0.075956434011459,-0.151882961392403,-0.085544317960739,-0.195204988121986,-0.028970375657082,0.033197928220034,0.058381553739309,-0.069960273802280,0.009967142716050,0.088202454149723,-0.016304504126310,0.041285231709480) * MODEL3_texOff(vec2(-1,1));
res += mat4(-0.079447299242020,0.097694978117943,0.379482388496399,0.068406708538532,0.082480676472187,0.023050352931023,-0.023889251053333,0.161224991083145,0.055944588035345,0.064283706247807,-0.119861975312233,0.071357667446136,0.007069205865264,-0.160901114344597,0.026935672387481,-0.305272936820984) * MODEL3_texOff(vec2(0,-1));
res += mat4(-0.101373381912708,-0.029138229787350,0.197581410408020,-0.212823763489723,0.096033908426762,-0.051629327237606,0.157747969031334,-0.126458898186684,-0.024646334350109,-0.026037931442261,0.105209790170193,0.302240341901779,-0.033039756119251,0.038287658244371,0.115232989192009,-0.134210258722305) * MODEL3_texOff(vec2(0,0));
res += mat4(0.010458953678608,0.030050154775381,0.019917508587241,0.184668987989426,0.020484192296863,0.106948807835579,0.012568830512464,0.024975012987852,0.064102686941624,-0.205365940928459,-0.012472431175411,-0.099769629538059,0.232704415917397,0.049198813736439,0.004217409994453,0.148781344294548) * MODEL3_texOff(vec2(0,1));
res += mat4(0.162357240915298,0.042362473905087,-0.052658025175333,0.063556984066963,0.028718261048198,0.025169467553496,0.167537599802017,0.068087920546532,0.273497968912125,-0.088826090097427,0.041834682226181,0.048530597239733,0.080112159252167,-0.253299534320831,0.129859000444412,-0.122828841209412) * MODEL3_texOff(vec2(1,-1));
res += mat4(0.209270000457764,-0.052770227193832,-0.120179213583469,-0.007597947493196,-0.076018847525120,-0.135568216443062,0.107513315975666,0.030390394851565,-0.148332163691521,0.038386855274439,-0.034516062587500,-0.052954375743866,-0.120932020246983,0.206246331334114,0.048136178404093,-0.034665104001760) * MODEL3_texOff(vec2(1,0));
res += mat4(-0.066076554358006,0.054937429726124,0.066218070685863,0.143145889043808,-0.190297707915306,0.013910237699747,0.007175270933658,-0.074899323284626,0.140621051192284,-0.026499694213271,0.018831927329302,-0.063565671443939,0.179706439375877,-0.083919636905193,0.009045442566276,0.203420832753181) * MODEL3_texOff(vec2(1,1));
res += mat4(-0.202276915311813,0.054049678146839,0.107297413051128,-0.075761877000332,-0.134743347764015,0.043237291276455,-0.241051673889160,-0.041726756840944,-0.142535001039505,-0.222297340631485,-0.214339122176170,0.016030250117183,-0.116492167115211,-0.073977582156658,0.299656987190247,0.115810818970203) * MODEL4_texOff(vec2(-1,-1));
res += mat4(-0.037355694919825,-0.165132328867912,0.226225689053535,-0.458958029747009,0.296602636575699,0.025166610255837,-0.769978463649750,-0.292439997196198,-0.195983096957207,-0.301720947027206,-0.265866845846176,-0.065910167992115,-0.114720612764359,0.002802024129778,0.063890866935253,-0.078419119119644) * MODEL4_texOff(vec2(-1,0));
res += mat4(0.050094865262508,0.147812440991402,0.035491868853569,0.111073389649391,0.097747184336185,0.017690358683467,0.066446214914322,-0.042443219572306,0.047442961484194,-0.167445540428162,-0.135947823524475,-0.107820518314838,0.006836028303951,-0.020035805180669,-0.014444141648710,-0.032311230897903) * MODEL4_texOff(vec2(-1,1));
res += mat4(-0.036544337868690,-0.053364895284176,-0.024183280766010,0.087010264396667,-0.374355554580688,0.059039127081633,0.038244925439358,-0.025224365293980,0.043944064527750,0.087416552007198,-0.233465358614922,-0.006170242559165,-0.129977643489838,-0.157690688967705,0.028942462056875,0.040455490350723) * MODEL4_texOff(vec2(0,-1));
res += mat4(-0.016496000811458,-0.040496386587620,-0.171978861093521,-0.048940807580948,0.380776733160019,0.062282528728247,0.065302170813084,0.062281962484121,-0.582120597362518,0.121098570525646,-1.115503907203674,0.024956448003650,-0.164485961198807,0.008585321716964,0.100949674844742,-0.364558726549149) * MODEL4_texOff(vec2(0,0));
res += mat4(0.005022605881095,-0.064793065190315,-0.062905527651310,0.222820714116096,-0.084301725029945,-0.132588490843773,0.037368357181549,-0.275477498769760,-0.012779777869582,0.114889465272427,0.129242822527885,-0.268143892288208,0.085414357483387,0.007518021389842,-0.127044126391411,0.194560170173645) * MODEL4_texOff(vec2(0,1));
res += mat4(-0.068894281983376,-0.138010561466217,0.132026046514511,0.069972932338715,-0.265086591243744,-0.009202814660966,-0.108899228274822,0.100934185087681,-0.230545580387115,0.015121133998036,-0.053055141121149,-0.030659159645438,0.028522042557597,0.045349601656199,0.074369691312313,0.140104979276657) * MODEL4_texOff(vec2(1,-1));
res += mat4(-0.090121246874332,-0.194604948163033,-0.080401375889778,0.052059877663851,0.409649193286896,0.046736922115088,-0.087217219173908,-0.165128245949745,-0.204045161604881,-0.052718065679073,-0.045034278184175,0.006950349546969,-0.138145342469215,0.172096669673920,0.056171756237745,0.098585806787014) * MODEL4_texOff(vec2(1,0));
res += mat4(-0.088976949453354,-0.088857918977737,-0.016583273187280,0.079288728535175,-0.067049235105515,0.082534395158291,0.044692911207676,0.001698818290606,-0.207069337368011,0.185766756534576,0.025897335261106,-0.021329589188099,0.200914606451988,-0.030473709106445,-0.016036469489336,0.180775314569473) * MODEL4_texOff(vec2(1,1));
res += mat4(0.172289654612541,-0.084815107285976,-0.090890690684319,-0.181987121701241,0.130984157323837,0.047056771814823,-0.074632316827774,0.029578633606434,0.004832980223000,0.081539064645767,0.029689786955714,-0.084703654050827,-0.012625276111066,-0.040478609502316,0.077906735241413,0.036185186356306) * MODEL5_texOff(vec2(-1,-1));
res += mat4(0.011288509704173,-0.211474850773811,0.107088528573513,0.019870979711413,0.026534471660852,0.052780222147703,0.068719238042831,-0.175261542201042,-0.080962687730789,0.268705934286118,-0.025377625599504,-0.089836731553078,-0.019742147997022,-0.091643959283829,-0.073347970843315,0.132928147912025) * MODEL5_texOff(vec2(-1,0));
res += mat4(0.046113222837448,-0.120858140289783,-0.033720429986715,-0.003053369466215,-0.092665657401085,0.018119854852557,0.025068502873182,0.075595602393150,-0.077860049903393,0.047624330967665,0.006521656177938,0.135328978300095,0.078961014747620,0.031382478773594,-0.069089218974113,-0.023792712017894) * MODEL5_texOff(vec2(-1,1));
res += mat4(0.229690819978714,0.326506048440933,0.055728416889906,0.256109952926636,0.086970895528793,0.035979758948088,-0.064626857638359,-0.125403046607971,0.033185198903084,-0.195248991250992,-0.164921432733536,-0.072415404021740,0.079493097960949,0.087890155613422,-0.151173904538155,0.082536689937115) * MODEL5_texOff(vec2(0,-1));
res += mat4(0.223959937691689,-0.189483627676964,-0.035203777253628,0.059614647179842,-0.120649069547653,-0.188174739480019,-0.168041259050369,-0.042287297546864,-0.048993874341249,-0.275814473628998,-0.383496552705765,-0.335688650608063,-0.030719902366400,-0.108066655695438,-0.151233583688736,0.068590372800827) * MODEL5_texOff(vec2(0,0));
res += mat4(0.055270783603191,0.031357426196337,0.033876970410347,0.069533072412014,-0.013576614670455,-0.147077083587646,-0.071084424853325,-0.386604726314545,-0.194137245416641,0.083076067268848,-0.070791050791740,0.283109813928604,-0.080698557198048,-0.317980051040649,-0.276380300521851,0.102247379720211) * MODEL5_texOff(vec2(0,1));
res += mat4(0.009529116563499,0.036086969077587,-0.001854117261246,0.001078022061847,0.031187571585178,0.100884154438972,-0.025978626683354,0.045536566525698,-0.695066988468170,-0.030407311394811,-0.057822398841381,-0.011171993799508,0.060416955500841,0.106276467442513,0.086009196937084,0.012301709502935) * MODEL5_texOff(vec2(1,-1));
res += mat4(0.173270836472511,-0.288823634386063,-0.031441804021597,0.068940728902817,0.002354472642764,0.072652198374271,0.012405920773745,-0.138504371047020,0.181346029043198,-0.005228697322309,-0.096827283501625,0.025017000734806,0.069089487195015,0.257632464170456,-0.037975374609232,0.095454923808575) * MODEL5_texOff(vec2(1,0));
res += mat4(-0.106735900044441,-0.034656636416912,-0.035668745636940,0.001557456911542,-0.052115175873041,0.131416678428650,0.066459290683270,0.042397659271955,0.158339038491249,-0.005920927505940,-0.086387790739536,0.037915948778391,-0.087424091994762,-0.012997268699110,-0.204088568687439,-0.034148219972849) * MODEL5_texOff(vec2(1,1));
res += mat4(-0.130092784762383,-0.052835319191217,0.039038561284542,-0.002538423519582,-0.022413974627852,-0.106698453426361,0.125262454152107,-0.017832562327385,0.030776901170611,0.020652649924159,-0.190940946340561,-0.039524480700493,0.438491284847260,-0.074408814311028,0.065975032746792,0.049706280231476) * MODEL6_texOff(vec2(-1,-1));
res += mat4(-0.064354680478573,0.017160644754767,-0.129505604505539,-0.243070751428604,-0.280743032693863,-0.054177746176720,-0.004073870368302,0.057391148060560,-0.120487801730633,-0.109238393604755,-0.229441374540329,0.292268037796021,-0.026949733495712,-0.140073478221893,0.134184896945953,0.176578536629677) * MODEL6_texOff(vec2(-1,0));
res += mat4(0.201584830880165,0.142742455005646,-0.100843377411366,-0.173433527350426,0.050511516630650,-0.071164794266224,-0.034432884305716,-0.122852347791195,-0.127499163150787,-0.116901554167271,-0.104441322386265,-0.210247024893761,0.128128841519356,-0.051880434155464,0.083381555974483,-0.088644593954086) * MODEL6_texOff(vec2(-1,1));
res += mat4(-0.155877798795700,-0.010401817969978,-0.097931675612926,0.032738029956818,0.138023704290390,0.166707202792168,-0.293226480484009,0.025267461314797,-0.208205670118332,0.018348159268498,-0.135238617658615,-0.002066005719826,0.153737932443619,-0.074233919382095,0.206259518861771,0.013912253081799) * MODEL6_texOff(vec2(0,-1));
res += mat4(0.129360958933830,0.036270052194595,-0.170163959264755,0.142724677920341,-0.210870668292046,-0.292172461748123,-0.073653288185596,-0.095389775931835,-0.094423502683640,-0.067837126553059,-0.171627297997475,0.011499256826937,-0.086274445056915,0.059520866721869,0.133485391736031,0.046693280339241) * MODEL6_texOff(vec2(0,0));
res += mat4(0.006365899462253,0.083167515695095,-0.105944521725178,-0.118217483162880,-0.030874203890562,0.356914937496185,-0.104289487004280,0.332527846097946,0.043745111674070,0.037294916808605,0.017160626128316,-0.245974838733673,0.218016624450684,-0.060580741614103,0.060735095292330,-0.033360678702593) * MODEL6_texOff(vec2(0,1));
res += mat4(-0.112986825406551,-0.017744505777955,-0.166080981492996,0.069378741085529,0.006478994619101,0.050346035510302,-0.174651876091957,-0.047351960092783,-0.234113499522209,-0.022868296131492,0.065926790237427,-0.052493929862976,0.216663390398026,0.051437947899103,-0.025061348453164,0.007885104976594) * MODEL6_texOff(vec2(1,-1));
res += mat4(0.056229434907436,-0.161568105220795,-0.104035913944244,0.060939889401197,0.115906834602356,0.042523209005594,-0.018324591219425,0.031202394515276,-0.160166278481483,0.083751045167446,0.051692072302103,-0.020093651488423,0.160361245274544,-0.215682849287987,-0.068767137825489,0.051477871835232) * MODEL6_texOff(vec2(1,0));
res += mat4(-0.037642687559128,0.083400294184685,-0.139908403158188,0.070220611989498,-0.115079142153263,0.191595003008842,-0.043919827789068,0.030311260372400,0.186618477106094,0.024166448041797,0.029278691858053,-0.104968182742596,-0.011373895220459,0.050713613629341,0.089850038290024,-0.037821155041456) * MODEL6_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(0.036611847579479,0.565524101257324,0.030045421794057,0.651822626590729) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 3.200 * > OUTPUT.h LUMA.h 3.200 * > *
//!COMPONENTS 4
//!BIND MODEL1
//!BIND MODEL2
//!BIND MODEL3
//!BIND MODEL4
//!BIND MODEL5
//!BIND MODEL6
//!SAVE MODEL10
//!DESC [AiUpscale_Medium_4x_Photo] mapping 2_4

vec4 hook()
{
vec4 res = vec4(-0.050603508949280,0.076819129288197,-0.004197455476969,0.040866952389479);
res += mat4(-0.029544802382588,0.015128168277442,-0.095840893685818,-0.025045182555914,-0.029258269816637,0.272208094596863,0.105532273650169,-0.034038767218590,-0.036012548953295,0.150317087769508,0.119960859417915,0.109462268650532,-0.044578969478607,-0.011344878934324,-0.028344949707389,-0.087783336639404) * MODEL1_texOff(vec2(-1,-1));
res += mat4(-0.104647606611252,0.166584104299545,-0.240100309252739,0.045985836535692,-0.081837542355061,0.227235957980156,-0.023001823574305,-0.008022583089769,-0.035633839666843,-0.001319074188359,-0.102989897131920,0.084689177572727,-0.078975334763527,-0.012981137260795,-0.005648315418512,0.124174304306507) * MODEL1_texOff(vec2(-1,0));
res += mat4(-0.099260501563549,0.168965175747871,-0.268856227397919,0.034043595194817,0.191474929451942,0.087973102927208,-0.080180868506432,-0.094845935702324,0.187222748994827,-0.033243950456381,-0.166167736053467,-0.085487253963947,-0.089221447706223,0.024159193038940,0.000164176861290,0.113834016025066) * MODEL1_texOff(vec2(-1,1));
res += mat4(0.043319150805473,-0.025331465527415,-0.161697715520859,0.115520335733891,-0.010390590876341,0.077384248375893,0.093826793134212,-0.004430732689798,-0.023279312998056,0.187794342637062,0.116750583052635,0.089760467410088,0.110449649393559,-0.129726931452751,0.371466130018234,-0.000545307528228) * MODEL1_texOff(vec2(0,-1));
res += mat4(0.018006274476647,0.138978049159050,-0.118618421256542,0.087109632790089,-0.087802700698376,0.079907022416592,-0.112526357173920,-0.093021154403687,0.155705198645592,0.113256379961967,-0.109496802091599,-0.022137381136417,-0.029790300875902,-0.067024216055870,0.127725020051003,-0.085802286863327) * MODEL1_texOff(vec2(0,0));
res += mat4(-0.063053093850613,0.025831013917923,-0.242580443620682,0.066651530563831,-0.058299716562033,0.064433649182320,-0.011530671268702,0.045303184539080,0.056800417602062,0.055641163140535,-0.109691351652145,0.083081930875778,0.059183895587921,-0.012191539630294,-0.135549232363701,-0.064583793282509) * MODEL1_texOff(vec2(0,1));
res += mat4(0.027525002136827,0.102184861898422,-0.122296415269375,0.097300335764885,-0.016602590680122,0.036461066454649,0.131987094879150,0.096093848347664,-0.076431743800640,0.004778919741511,0.195197671651840,0.048253145068884,0.059152632951736,0.008619826287031,-0.234035000205040,-0.073770590126514) * MODEL1_texOff(vec2(1,-1));
res += mat4(0.010102569125593,0.061248864978552,-0.013230760581791,0.121468469500542,-0.037697099149227,0.013593635521829,0.099912486970425,0.049485228955746,-0.112236611545086,-0.064434647560120,-0.175410166382790,-0.094839736819267,0.027920424938202,-0.057192653417587,-0.108610101044178,0.009467874653637) * MODEL1_texOff(vec2(1,0));
res += mat4(-0.099844217300415,-0.014727246016264,-0.217350497841835,0.091246344149113,-0.040619488805532,-0.128447800874710,0.024539444595575,-0.050948139280081,-0.073059365153313,0.003200595732778,-0.021582573652267,0.160687103867531,-0.018588062375784,0.073390260338783,0.087221458554268,0.048050165176392) * MODEL1_texOff(vec2(1,1));
res += mat4(-0.091164618730545,-0.064149625599384,0.048743594437838,0.046106301248074,0.058832563459873,-0.016311004757881,-0.076097659766674,0.069569289684296,0.028667528182268,-0.188083738088608,0.069816827774048,-0.056975331157446,-0.112754411995411,0.097818560898304,0.029323201626539,-0.015015115030110) * MODEL2_texOff(vec2(-1,-1));
res += mat4(-0.167597427964211,-0.096746146678925,0.054737318307161,0.018140554428101,-0.144411966204643,0.036877948790789,-0.051450062543154,-0.071893140673637,-0.059468410909176,-0.132656782865524,0.044160392135382,0.129273101687431,-0.048622012138367,0.210397571325302,-0.045195665210485,-0.049746949225664) * MODEL2_texOff(vec2(-1,0));
res += mat4(-0.002235654508695,0.079561583697796,0.087564758956432,-0.009088220074773,-0.344582468271255,-0.014861469157040,-0.015863712877035,-0.134894356131554,-0.043944768607616,-0.202210694551468,0.019559910520911,0.042799133807421,-0.098343819379807,0.252492576837540,-0.091877453029156,0.235808357596397) * MODEL2_texOff(vec2(-1,1));
res += mat4(0.183118745684624,-0.010195991955698,0.004587274510413,0.045611418783665,0.125390827655792,0.050315555185080,-0.076622657477856,-0.061549324542284,-0.157640844583511,-0.186760216951370,-0.078321784734726,0.087443217635155,0.023086562752724,0.142744481563568,-0.382010161876678,0.164174839854240) * MODEL2_texOff(vec2(0,-1));
res += mat4(-0.080432526767254,0.609648287296295,-0.051123626530170,0.058525532484055,0.236668959259987,-0.085651956498623,0.139110714197159,0.285644322633743,0.006619140040129,0.227893725037575,-0.010706809349358,-0.190088137984276,0.096546828746796,-0.328815698623657,0.181050851941109,0.073809750378132) * MODEL2_texOff(vec2(0,0));
res += mat4(-0.070519775152206,0.207119584083557,-0.178387463092804,0.033721785992384,0.157274007797241,-0.159032061696053,-0.217778429389000,0.185282558202744,0.083876475691795,-0.058650381863117,-0.052391063421965,-0.002559301676229,-0.064908660948277,-0.244727045297623,0.020015450194478,-0.210990130901337) * MODEL2_texOff(vec2(0,1));
res += mat4(-0.016463315114379,-0.141084671020508,0.186063811182976,-0.048405174165964,0.093347482383251,0.082797862589359,-0.103922039270401,-0.191996037960052,0.071016281843185,-0.005498963873833,0.078158810734749,-0.085663065314293,-0.036659557372332,0.104773297905922,0.198516473174095,-0.022960662841797) * MODEL2_texOff(vec2(1,-1));
res += mat4(0.045690245926380,0.079832226037979,-0.012619819492102,-0.088443450629711,0.017570154741406,-0.238587573170662,-0.370927423238754,0.068291701376438,0.145541369915009,0.184437572956085,-0.045718144625425,-0.117146819829941,0.123953297734261,-0.124857857823372,-0.136524334549904,-0.110266432166100) * MODEL2_texOff(vec2(1,0));
res += mat4(-0.006103929597884,-0.128117710351944,0.003395015606657,0.041911318898201,0.020286858081818,-0.090414874255657,0.040231056511402,0.076706051826477,-0.112611405551434,-0.267486572265625,-0.003074248554185,-0.015096663497388,-0.074273280799389,-0.090561851859093,-0.049800638109446,0.113551527261734) * MODEL2_texOff(vec2(1,1));
res += mat4(-0.053660649806261,0.072954647243023,-0.038582932204008,0.065013550221920,-0.062843739986420,0.112428307533264,0.018803272396326,0.210248261690140,0.170475959777832,0.272058010101318,-0.116715736687183,-0.126454889774323,-0.022065909579396,-0.397955417633057,0.164272323250771,0.011527526192367) * MODEL3_texOff(vec2(-1,-1));
res += mat4(-0.015243432484567,-0.280991286039352,0.136919453740120,0.034734752029181,-0.006967524532229,-0.179499909281731,0.140179634094238,0.037611361593008,-0.128931060433388,0.101591162383556,-0.023315059021115,-0.188189178705215,0.046153437346220,0.014467851258814,0.121647194027901,-0.165217638015747) * MODEL3_texOff(vec2(-1,0));
res += mat4(-0.027116788551211,-0.249709501862526,0.148987710475922,0.034378942102194,0.015240743756294,0.073104634881020,0.062522180378437,-0.209157854318619,-0.021079825237393,-0.000688339350745,0.014769446104765,-0.037863440811634,0.030399288982153,-0.036321476101875,0.009529708884656,-0.020507471635938) * MODEL3_texOff(vec2(-1,1));
res += mat4(0.196112483739853,0.130643174052238,-0.049215678125620,-0.233096033334732,-0.031956363469362,-0.022443166002631,0.005614629480988,-0.118385739624500,-0.049563616514206,0.143179804086685,-0.003999609034508,0.255489110946655,0.054515611380339,-0.245139360427856,0.145791456103325,-0.120281323790550) * MODEL3_texOff(vec2(0,-1));
res += mat4(0.047183703631163,0.211095318198204,-0.105178803205490,0.081765912473202,-0.162126719951630,0.073038429021835,-0.119262680411339,0.007992519997060,0.258457660675049,-0.559848248958588,-0.111788786947727,-0.059839531779289,0.275637656450272,0.169555231928825,-0.019038474187255,-0.104801014065742) * MODEL3_texOff(vec2(0,0));
res += mat4(0.190292119979858,0.001624094555154,0.154246166348457,-0.027190789580345,0.107532039284706,-0.100421883165836,0.060580968856812,0.019496252760291,0.047489605844021,-0.013924067839980,0.005787994712591,-0.052290428429842,-0.022095287218690,0.239216089248657,0.166110485792160,0.112876988947392) * MODEL3_texOff(vec2(0,1));
res += mat4(-0.003277965588495,0.240961879491806,-0.145341798663139,-0.037553243339062,0.229761838912964,-0.083891861140728,0.029400214552879,0.018498543649912,0.054110448807478,0.054820928722620,0.041513152420521,0.096052028238773,0.095267444849014,-0.221030831336975,0.123120382428169,0.071999914944172) * MODEL3_texOff(vec2(1,-1));
res += mat4(-0.171645179390907,0.338620066642761,-0.222529053688049,-0.005116838030517,0.197891235351563,0.285639911890030,0.052701808512211,-0.091593578457832,-0.060842767357826,-0.078084774315357,0.047178421169519,0.260915815830231,0.030877543613315,0.092658817768097,-0.044796478003263,0.072546899318695) * MODEL3_texOff(vec2(1,0));
res += mat4(-0.058031871914864,0.170267671346664,-0.048006754368544,-0.028929019346833,0.068848267197609,-0.136774897575378,-0.101159386336803,0.139342576265335,0.006166322622448,-0.044101282954216,0.054531849920750,-0.034426465630531,0.071066185832024,0.184779211878777,-0.054314274340868,-0.176159560680389) * MODEL3_texOff(vec2(1,1));
res += mat4(-0.156993880867958,0.209071680903435,-0.218160644173622,0.206306338310242,0.075990587472916,0.019834484905005,0.199912756681442,-0.348085701465607,0.025364601984620,0.057358104735613,-0.150567322969437,0.010298952460289,-0.046418935060501,0.087669104337692,0.067503616213799,0.053524427115917) * MODEL4_texOff(vec2(-1,-1));
res += mat4(0.130396440625191,-0.021723922342062,-0.245360225439072,0.119883656501770,-0.488955289125443,0.292162239551544,-0.052821926772594,-0.064587570726871,-0.057132333517075,0.132725045084953,-0.057812254875898,0.045452669262886,0.013922443613410,-0.159137949347496,0.125312879681587,-0.056896355003119) * MODEL4_texOff(vec2(-1,0));
res += mat4(0.070789143443108,-0.202484726905823,0.092607408761978,0.080089136958122,-0.502005815505981,-0.003221153048798,-0.007194928359240,0.088077150285244,0.095140203833580,0.116545297205448,-0.182269155979156,0.016345988959074,-0.008631882257760,0.175865948200226,-0.049585282802582,-0.006976033560932) * MODEL4_texOff(vec2(-1,1));
res += mat4(-0.022453302517533,0.219620391726494,-0.073730498552322,-0.001247526728548,0.153654396533966,0.044747572392225,-0.024188706651330,-0.030645703896880,0.032752621918917,-0.029948592185974,-0.072330608963966,0.080238014459610,0.026326989755034,-0.188482239842415,-0.248123914003372,-0.022112844511867) * MODEL4_texOff(vec2(0,-1));
res += mat4(-0.066708914935589,-0.144701331853867,-0.120298825204372,-0.072730951011181,0.181670576334000,-0.245035052299500,0.178203478455544,-0.477581709623337,-0.255558818578720,-0.021935559809208,0.000610997667536,0.006491012405604,-0.215702354907990,0.031224645674229,-0.196958869695663,0.097220264375210) * MODEL4_texOff(vec2(0,0));
res += mat4(0.005565792787820,-0.217696845531464,-0.000436852744315,-0.015830961987376,-0.002250820398331,0.027260757982731,0.000768370751757,0.048002433031797,-0.000709803192876,0.170650541782379,0.027480522170663,0.061510812491179,-0.023226572200656,-0.002182061783969,-0.149204120039940,0.152406364679337) * MODEL4_texOff(vec2(0,1));
res += mat4(-0.003350234590471,0.001959835411981,0.116440169513226,-0.057969465851784,0.051468633115292,0.038810044527054,-0.207747086882591,0.223047152161598,0.031171439215541,0.155146986246109,-0.051269385963678,0.117700144648552,-0.027402060106397,-0.033797882497311,-0.059873279184103,-0.036279648542404) * MODEL4_texOff(vec2(1,-1));
res += mat4(0.156373813748360,0.074769206345081,0.230489343404770,-0.023709217086434,-0.010620173066854,0.033102564513683,-0.106202520430088,-0.103265278041363,-0.067814894020557,-0.026256144046783,0.343596577644348,0.001418406725861,-0.073605872690678,0.022325808182359,-0.378467023372650,0.107360191643238) * MODEL4_texOff(vec2(1,0));
res += mat4(-0.059565953910351,0.065584078431129,0.002200057497248,0.080722875893116,0.065647460520267,-0.051196694374084,-0.011578237637877,-0.120203681290150,0.067172430455685,-0.170796751976013,0.082364447414875,-0.067700944840908,-0.089146263897419,0.096486344933510,0.039163887500763,-0.038562607020140) * MODEL4_texOff(vec2(1,1));
res += mat4(-0.060756348073483,-0.028088379651308,0.007253612857312,0.017698150128126,-0.063565939664841,0.022851897403598,0.006108005996794,0.037129823118448,-0.110249340534210,-0.062607593834400,0.071587622165680,-0.059208296239376,-0.022709909826517,-0.113221913576126,0.056038368493319,0.031473159790039) * MODEL5_texOff(vec2(-1,-1));
res += mat4(-0.033138018101454,-0.104385331273079,-0.012962559238076,0.153589680790901,-0.000319098151522,0.030401362106204,0.058789733797312,-0.055561996996403,-0.008783613331616,-0.077127747237682,0.067862607538700,0.002122265286744,0.140577271580696,-0.030550479888916,-0.057765167206526,-0.055899139493704) * MODEL5_texOff(vec2(-1,0));
res += mat4(0.058512739837170,0.006250862032175,0.097067259252071,-0.010039487853646,0.064027369022369,-0.056468769907951,0.095737598836422,0.022563649341464,-0.142785936594009,-0.010399032384157,0.105744093656540,0.053180962800980,-0.187008187174797,-0.038735944777727,-0.152814686298370,0.059617634862661) * MODEL5_texOff(vec2(-1,1));
res += mat4(-0.039690211415291,-0.357185423374176,0.132243260741234,-0.236562594771385,-0.100774832069874,0.034196615219116,-0.029379546642303,0.108261451125145,0.007120679598302,-0.223200619220734,-0.079791784286499,0.097901523113251,0.134565636515617,-0.049688693135977,0.018706839531660,-0.037738524377346) * MODEL5_texOff(vec2(0,-1));
res += mat4(-0.196739926934242,-0.197391420602798,0.139345303177834,-0.180367052555084,0.158605650067329,-0.055385734885931,-0.042466145008802,-0.061790786683559,-0.207497611641884,0.455402731895447,-0.313101708889008,0.208080977201462,-0.123657524585724,0.151486009359360,-0.337359040975571,0.006672699004412) * MODEL5_texOff(vec2(0,0));
res += mat4(-0.002441564807668,-0.006566877942532,0.052846506237984,-0.078207813203335,0.062590099871159,-0.186273843050003,-0.059493720531464,-0.036991734057665,-0.238042980432510,0.162267863750458,-0.147324770689011,0.058633528649807,0.287719249725342,0.109362982213497,-0.085166268050671,-0.077643230557442) * MODEL5_texOff(vec2(0,1));
res += mat4(0.037979822605848,-0.369903773069382,-0.063331879675388,-0.038273286074400,0.011094028130174,0.115491233766079,-0.143679767847061,-0.037731036543846,-0.026831293478608,-0.024470627307892,0.114593774080276,0.017795346677303,-0.034989915788174,0.027787355706096,-0.104180641472340,-0.013951057568192) * MODEL5_texOff(vec2(1,-1));
res += mat4(0.113885335624218,-0.158377513289452,0.079492516815662,-0.137282595038414,-0.037691053003073,-0.225837290287018,0.063180848956108,0.067551165819168,0.086422756314278,-0.110375747084618,0.272266626358032,0.027639836072922,-0.027306117117405,0.123432539403439,0.408190160989761,0.016777407377958) * MODEL5_texOff(vec2(1,0));
res += mat4(0.014688024297357,0.060749389231205,0.001105978386477,0.096423842012882,0.089898377656937,-0.178137257695198,-0.133670121431351,0.017600940540433,-0.108918122947216,-0.246728107333183,-0.139502584934235,0.010037684813142,0.210159108042717,0.118998527526855,0.352723985910416,-0.091168917715549) * MODEL5_texOff(vec2(1,1));
res += mat4(-0.008306408300996,-0.036695335060358,-0.017606317996979,0.027559252455831,-0.073268696665764,0.027228439226747,-0.062290403991938,0.242203056812286,0.032194122672081,0.135665193200111,0.103505201637745,0.044896658509970,0.082078717648983,-0.552247345447540,0.187471434473991,-0.097114726901054) * MODEL6_texOff(vec2(-1,-1));
res += mat4(0.042805112898350,0.085560746490955,-0.010336239822209,-0.125537067651749,0.054280646145344,-0.209385782480240,-0.082239881157875,-0.049706190824509,0.296931594610214,-0.457038521766663,-0.013671651482582,-0.242477789521217,-0.202989161014557,-0.384092450141907,0.034316584467888,0.032428137958050) * MODEL6_texOff(vec2(-1,0));
res += mat4(-0.159350290894508,0.069860644638538,-0.002753284759820,0.023565232753754,0.284657597541809,-0.009352214634418,0.153604626655579,-0.141893535852432,0.180036678910255,-0.182204648852348,-0.028148107230663,-0.210247874259949,-0.016277978196740,0.076250523328781,-0.102001219987869,0.135720595717430) * MODEL6_texOff(vec2(-1,1));
res += mat4(0.031209042295814,0.225119084119797,-0.086356855928898,0.025682192295790,0.078925713896751,0.033272169530392,-0.022538319230080,0.092700727283955,-0.040973946452141,0.094899244606495,0.153301805257797,0.029227854683995,-0.005259283818305,0.146147727966309,0.109050996601582,0.002007204573601) * MODEL6_texOff(vec2(0,-1));
res += mat4(0.186018049716949,-0.137799724936485,-0.088151104748249,-0.051048800349236,-0.032305564731359,-0.029308978468180,-0.148355364799500,-0.005524340551347,-0.048948165029287,-0.527805864810944,0.096851706504822,0.215861767530441,-0.069105885922909,0.207349434494972,-0.101248703896999,-0.190540507435799) * MODEL6_texOff(vec2(0,0));
res += mat4(0.083123557269573,0.043323941528797,-0.274947822093964,0.012312230654061,-0.011179080232978,-0.065361782908440,0.013882624916732,-0.086231365799904,0.050558522343636,-0.118960902094841,-0.196295514702797,-0.006884169299155,0.017873233184218,-0.059424091130495,0.095426991581917,-0.092761389911175) * MODEL6_texOff(vec2(0,1));
res += mat4(-0.078393086791039,0.225548267364502,-0.307563841342926,0.233120471239090,0.051183547824621,0.056576445698738,0.012704354710877,-0.252562344074249,-0.064209483563900,-0.037902075797319,0.051131587475538,-0.048993587493896,-0.069981075823307,0.026137661188841,-0.183810099959373,0.060392335057259) * MODEL6_texOff(vec2(1,-1));
res += mat4(-0.117271356284618,0.165109410881996,-0.042077954858541,-0.098343215882778,-0.051232364028692,0.049053065478802,-0.135688036680222,0.167592257261276,0.052532594650984,-0.289060175418854,0.143017753958702,0.018050573766232,-0.010907484218478,-0.011847974732518,-0.029125159606338,-0.018620299175382) * MODEL6_texOff(vec2(1,0));
res += mat4(-0.106363333761692,0.287937611341476,-0.185488730669022,-0.012472555041313,-0.131898686289787,0.054425287991762,-0.104849271476269,0.201182216405869,0.044928997755051,-0.076659083366394,-0.002555055310950,0.078717812895775,-0.054915290325880,-0.038380701094866,-0.046237688511610,-0.040788285434246) * MODEL6_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(-0.317552596330643,0.035184551030397,0.361966729164124,-0.625094890594482) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 3.200 * > OUTPUT.h LUMA.h 3.200 * > *
//!COMPONENTS 4
//!BIND MODEL1
//!BIND MODEL2
//!BIND MODEL3
//!BIND MODEL4
//!BIND MODEL5
//!BIND MODEL6
//!SAVE MODEL11
//!DESC [AiUpscale_Medium_4x_Photo] mapping 2_5

vec4 hook()
{
vec4 res = vec4(0.068973727524281,0.049976166337729,0.054199784994125,0.178519889712334);
res += mat4(0.002360121347010,-0.223454490303993,0.145132049918175,0.301508724689484,-0.003775672288612,0.019769335165620,0.094587996602058,-0.060196645557880,0.318070799112320,-0.325514405965805,0.444604009389877,0.030545480549335,-0.007168662734330,0.043245002627373,-0.021307025104761,-0.076192967593670) * MODEL1_texOff(vec2(-1,-1));
res += mat4(0.037807956337929,-0.219154760241508,-0.101132892072201,0.179380148649216,0.009228411130607,0.030881794169545,-0.121194079518318,0.043472923338413,0.150465726852417,-0.171589240431786,0.372173845767975,0.090790636837482,-0.345065355300903,-0.055915392935276,-0.192772850394249,0.281557768583298) * MODEL1_texOff(vec2(-1,0));
res += mat4(0.013551742769778,-0.105381608009338,-0.110550940036774,0.166213423013687,-0.055962450802326,-0.086501359939575,0.045221455395222,0.037718687206507,-0.001524308347143,-0.109808653593063,-0.077191919088364,0.201883241534233,-0.053358662873507,0.166968196630478,-0.067547626793385,0.045009076595306) * MODEL1_texOff(vec2(-1,1));
res += mat4(-0.168439149856567,0.007770801894367,0.082685299217701,0.302652835845947,-0.100816041231155,0.062021810561419,0.141286551952362,0.015421999618411,0.068092212080956,0.004748537670821,0.193285465240479,0.101052686572075,0.409917682409286,0.123412407934666,-0.369725525379181,-0.051199920475483) * MODEL1_texOff(vec2(0,-1));
res += mat4(0.154274210333824,0.197681874036789,-0.278895586729050,-0.344131141901016,0.012389491312206,0.162047058343887,-0.328566074371338,0.004267421551049,0.126102954149246,0.053904436528683,0.124288849532604,0.006051015574485,-0.272891670465469,0.059889629483223,-0.052255582064390,0.459549933671951) * MODEL1_texOff(vec2(0,0));
res += mat4(0.060409042984247,-0.000149872721522,0.053636267781258,-0.155838504433632,-0.148742765188217,0.210475683212280,-0.056013960391283,-0.047847304493189,0.143897265195847,0.072545737028122,0.087361782789230,0.080547653138638,0.101576708257198,0.092184439301491,-0.055359352380037,-0.047193646430969) * MODEL1_texOff(vec2(0,1));
res += mat4(0.023648375645280,0.042724702507257,-0.076968029141426,0.215341553092003,0.020533222705126,-0.002116146264598,0.179898992180824,0.131504803895950,-0.060060352087021,0.088287092745304,-0.153092965483665,-0.288816094398499,0.164419427514076,0.005453822668642,-0.093916863203049,0.008026833645999) * MODEL1_texOff(vec2(1,-1));
res += mat4(0.135687887668610,0.013319771736860,0.029248017817736,0.036626379936934,-0.107541404664516,0.106543749570847,-0.108602061867714,0.085226371884346,0.060784794390202,-0.024600535631180,0.237363874912262,-0.200366452336311,0.009532338008285,0.052766680717468,-0.081536889076233,0.111936151981354) * MODEL1_texOff(vec2(1,0));
res += mat4(0.032281991094351,-0.021622670814395,-0.040936049073935,0.309721946716309,-0.022992661222816,0.089421905577183,-0.011241913773119,0.000809064717032,-0.122411452233791,-0.177494153380394,-0.085148952901363,0.108325473964214,-0.074292376637459,-0.005958673544228,-0.003855888266116,-0.073234803974628) * MODEL1_texOff(vec2(1,1));
res += mat4(0.125928446650505,0.027506524696946,-0.115155860781670,0.168777644634247,-0.030459003522992,-0.230349108576775,0.057968318462372,0.052467633038759,-0.168112963438034,0.118515573441982,0.072239749133587,0.063353516161442,0.028592860326171,0.039324369281530,-0.103759385645390,-0.216142609715462) * MODEL2_texOff(vec2(-1,-1));
res += mat4(-0.025966446846724,0.497045814990997,-0.037930533289909,-0.044542085379362,-0.030629038810730,-0.456040024757385,-0.218726068735123,0.044528521597385,0.135790213942528,0.041332568973303,-0.156821221113205,0.058554969727993,-0.088652543723583,-0.062188901007175,-0.013181285932660,-0.208386063575745) * MODEL2_texOff(vec2(-1,0));
res += mat4(-0.084958486258984,0.004331761505455,-0.088928081095219,0.086756981909275,0.014568286947906,-0.089654870331287,0.051568035036325,0.208737045526505,-0.049086999148130,-0.198957175016403,-0.008993487805128,0.211006775498390,-0.037314798682928,0.146614179015160,-0.084014430642128,-0.383322089910507) * MODEL2_texOff(vec2(-1,1));
res += mat4(0.120021820068359,-0.082981869578362,0.099331036210060,0.008258802816272,-0.145084634423256,-0.083319745957851,0.123145230114460,-0.071285210549831,-0.191807985305786,-0.042459364980459,-0.129742383956909,0.217455968260765,-0.243012472987175,-0.102350696921349,-0.082767024636269,0.097788006067276) * MODEL2_texOff(vec2(0,-1));
res += mat4(-0.073165230453014,-0.077796339988708,-0.019346032291651,0.014059922657907,0.200155481696129,0.087716564536095,-0.173558279871941,0.031452201306820,-0.006060107611120,-0.266144722700119,-0.105219677090645,0.184836223721504,0.249432072043419,-0.167510300874710,-0.134271726012230,0.393441170454025) * MODEL2_texOff(vec2(0,0));
res += mat4(-0.070347152650356,0.088742412626743,-0.024067228659987,0.008848406374454,-0.135684162378311,-0.173186674714088,0.299240350723267,0.065578266978264,0.051785696297884,-0.389215677976608,-0.062626950442791,0.065745562314987,-0.039792470633984,0.188957497477531,-0.118134558200836,0.169428586959839) * MODEL2_texOff(vec2(0,1));
res += mat4(0.019260389730334,-0.024201512336731,0.200529962778091,-0.101821154356003,0.002919623628259,0.061873428523540,0.029311133548617,0.024796696379781,-0.141868397593498,-0.065756000578403,-0.012135512195528,0.166092544794083,-0.020563496276736,0.073804222047329,0.019474828615785,-0.183798596262932) * MODEL2_texOff(vec2(1,-1));
res += mat4(-0.154489412903786,-0.005724439397454,-0.146581262350082,-0.122601345181465,-0.002372017130256,0.252078831195831,-0.051870536059141,-0.069860637187958,0.078369215130806,-0.088467717170715,-0.064985640347004,0.172550603747368,0.053572889417410,0.113166503608227,0.092818282544613,0.209635809063911) * MODEL2_texOff(vec2(1,0));
res += mat4(-0.161429286003113,-0.018617248162627,0.314462482929230,0.032507542520761,0.005482908803970,0.162394151091576,0.003137536114082,-0.014157329685986,-0.080612771213055,-0.186769947409630,0.181386083364487,0.369487285614014,-0.098334714770317,-0.029902905225754,0.273597806692123,0.098724581301212) * MODEL2_texOff(vec2(1,1));
res += mat4(-0.102386832237244,0.068707995116711,-0.080078318715096,-0.059833370149136,0.099371775984764,-0.021673385053873,-0.092534996569157,0.012586522847414,-0.272848188877106,0.019996033981442,0.090401962399483,-0.027700271457434,0.010127887129784,-0.049767248332500,-0.042119409888983,0.055538531392813) * MODEL3_texOff(vec2(-1,-1));
res += mat4(0.194831952452660,0.152921661734581,-0.162333965301514,-0.200539842247963,0.010188641026616,0.428364723920822,0.155894398689270,0.080767057836056,0.046440068632364,-0.522583723068237,0.138405442237854,-0.014856350608170,0.112497620284557,0.332457989454269,-0.310237079858780,0.017779661342502) * MODEL3_texOff(vec2(-1,0));
res += mat4(0.097824737429619,-0.077144749462605,-0.029641570523381,-0.013590442016721,-0.037344239652157,-0.162133723497391,-0.035589672625065,0.015066514723003,0.015714457258582,-0.156144842505455,0.111881121993065,0.059188991785049,0.060619354248047,0.331151098012924,-0.036301240324974,0.199448764324188) * MODEL3_texOff(vec2(-1,1));
res += mat4(0.053029671311378,-0.014935529790819,0.039372067898512,-0.058441750705242,0.017824685201049,0.047822028398514,0.051652308553457,-0.110211305320263,-1.247554421424866,0.117273412644863,0.098338924348354,-0.806653797626495,0.395297348499298,-0.235983148217201,-0.201202780008316,-0.019692782312632) * MODEL3_texOff(vec2(0,-1));
res += mat4(0.137281268835068,-0.090155899524689,-0.100586108863354,-0.116408310830593,-0.171868786215782,-0.328077822923660,0.082654908299446,-0.061901278793812,0.287513375282288,0.094059035181999,0.046684261411428,-0.374734997749329,0.108095489442348,-0.010883412323892,0.009874996729195,-0.137892380356789) * MODEL3_texOff(vec2(0,0));
res += mat4(0.042398303747177,0.059592712670565,-0.213344663381577,0.016199717298150,-0.090958356857300,0.030859306454659,-0.041805237531662,-0.042538195848465,0.080005995929241,-0.085699126124382,0.044015772640705,0.056880876421928,-0.124439433217049,0.260448843240738,-0.177827700972557,-0.121216326951981) * MODEL3_texOff(vec2(0,1));
res += mat4(-0.003967977128923,0.206397324800491,0.144496500492096,0.040492836385965,0.040303859859705,0.033699337393045,0.222768798470497,-0.169210240244865,-0.285245358943939,0.039698321372271,-0.041811056435108,-0.303862482309341,0.136845409870148,-0.118196383118629,0.088422276079655,0.055242598056793) * MODEL3_texOff(vec2(1,-1));
res += mat4(-0.066722802817822,0.097440756857395,0.042685601860285,-0.007074916269630,-0.091593988239765,-0.069335430860519,-0.063951447606087,-0.231914654374123,0.150408253073692,0.054639369249344,0.145843848586082,-0.038460060954094,0.139070183038712,-0.179848760366440,-0.004700826480985,-0.134680837392807) * MODEL3_texOff(vec2(1,0));
res += mat4(-0.057570353150368,0.259929925203323,-0.033980324864388,-0.050992757081985,0.024364370852709,0.009469669312239,0.147395342588425,-0.053817454725504,-0.016999116167426,-0.026636540889740,-0.084418691694736,0.049093518406153,-0.016349103301764,0.030561599880457,-0.028722560033202,0.018367934972048) * MODEL3_texOff(vec2(1,1));
res += mat4(-0.120463371276855,-0.088676489889622,0.157955229282379,0.025611162185669,-0.034029707312584,-0.040077783167362,0.379534572362900,0.004328395705670,0.020482785999775,-0.230719342827797,0.129504725337029,0.089155919849873,0.100201897323132,-0.031676344573498,-0.037791971117258,-0.022659152746201) * MODEL4_texOff(vec2(-1,-1));
res += mat4(-0.057804659008980,-0.172398209571838,-0.059714522212744,0.241659075021744,0.029818484559655,-0.859395027160645,-0.633702576160431,-0.201730430126190,-0.012643498368561,-0.251102119684219,0.090010643005371,0.035768676549196,0.028534732758999,-0.059191189706326,0.012905219569802,0.065655454993248) * MODEL4_texOff(vec2(-1,0));
res += mat4(-0.120888292789459,0.002117303432897,-0.001650812220760,0.192150875926018,0.031548459082842,0.041913144290447,-0.156268969178200,-0.196761220693588,-0.030696775764227,-0.203751474618912,-0.180478513240814,0.038657505065203,-0.038177359849215,0.213764518499374,0.237808853387833,-0.060433544218540) * MODEL4_texOff(vec2(-1,1));
res += mat4(-0.053103949874640,0.072526603937149,-0.323169142007828,-0.212754756212234,0.145369291305542,0.071574822068214,0.215874135494232,0.034391801804304,0.052413597702980,-0.119879499077797,-0.072195939719677,0.084080718457699,0.209611013531685,0.077748715877533,0.117182791233063,0.148598492145538) * MODEL4_texOff(vec2(0,-1));
res += mat4(-0.216595366597176,0.022502010688186,-0.068751007318497,0.114458970725536,-0.086369879543781,0.071766108274460,-0.382608145475388,-0.004815436434001,-0.067816048860550,0.050776675343513,-0.040980394929647,-0.220659956336021,-0.062525719404221,-0.297934830188751,-0.061857610940933,0.141740784049034) * MODEL4_texOff(vec2(0,0));
res += mat4(-0.002710911678150,0.060776624828577,-0.102789163589478,0.118807911872864,-0.010667214170098,-0.056634094566107,0.054319538176060,0.040029801428318,-0.022853033617139,-0.393000215291977,-0.672975718975067,-0.215477123856544,-0.293306350708008,0.125856921076775,0.212646067142487,-0.083368644118309) * MODEL4_texOff(vec2(0,1));
res += mat4(0.090511061251163,0.107882931828499,-0.222607582807541,-0.310045361518860,0.163992807269096,0.015846995636821,0.223848119378090,0.023932700976729,0.053415548056364,0.045388508588076,-0.076222375035286,-0.030234953388572,0.038627862930298,0.087793953716755,0.020539611577988,0.015064619481564) * MODEL4_texOff(vec2(1,-1));
res += mat4(-0.006665930617601,0.156925365328789,0.069638729095459,-0.097707591950893,-0.054139237850904,0.040604792535305,-0.548512220382690,-0.019202001392841,-0.128625065088272,0.061711575835943,-0.172119259834290,-0.196586862206459,0.016139127314091,0.013091799803078,-0.223299726843834,-0.211556956171989) * MODEL4_texOff(vec2(1,0));
res += mat4(0.019953757524490,0.208205729722977,0.013499115593731,-0.039692468941212,-0.043169908225536,-0.039130620658398,-0.155978009104729,0.105214700102806,-0.051735620945692,0.169598564505577,-0.368939518928528,-0.022357314825058,-0.173320874571800,0.192989766597748,-0.405476272106171,-0.377184391021729) * MODEL4_texOff(vec2(1,1));
res += mat4(0.039906512945890,-0.605834782123566,0.070523530244827,0.008651718497276,0.078788049519062,-0.097532458603382,-0.216523483395576,0.054078083485365,0.120718970894814,-0.054042216390371,-0.054229814559221,-0.016368808224797,0.138398319482803,0.024479536339641,-0.012642420828342,0.051795832812786) * MODEL5_texOff(vec2(-1,-1));
res += mat4(-0.059022463858128,-0.280771583318710,0.154085293412209,-0.250007927417755,0.054117292165756,-0.241814255714417,0.066909469664097,-0.005966181401163,-0.110750868916512,0.313442081212997,0.035143204033375,-0.159543633460999,-0.093464568257332,-0.069874979555607,0.302235245704651,-0.043120801448822) * MODEL5_texOff(vec2(-1,0));
res += mat4(-0.000626685447060,-0.055838771164417,-0.140972733497620,-0.161283895373344,-0.156790986657143,-0.156010359525681,-0.018962530419230,0.009189858101308,-0.054379776120186,0.042230069637299,0.168351545929909,-0.060372322797775,0.035078324377537,-0.075548902153969,0.041319753974676,0.224211901426315) * MODEL5_texOff(vec2(-1,1));
res += mat4(0.109981380403042,0.114349186420441,0.012272980064154,-0.030483387410641,0.262443065643311,-0.090230911970139,0.026012102141976,0.112977601587772,0.054637413471937,-0.033024936914444,-0.068632133305073,-0.048590965569019,0.079538382589817,-0.162843033671379,0.087705031037331,0.099436640739441) * MODEL5_texOff(vec2(0,-1));
res += mat4(0.159253701567650,0.159725695848465,-0.081545539200306,-1.063146114349365,-0.057086680084467,-0.016723159700632,0.070414960384369,0.105616368353367,0.042675942182541,-0.101030543446541,-0.291805744171143,-0.262940585613251,-0.264846146106720,-0.058088824152946,0.228199437260628,0.049092426896095) * MODEL5_texOff(vec2(0,0));
res += mat4(-0.018060410395265,-0.018093528226018,0.038978174328804,-0.193794220685959,0.036440089344978,-0.228559389710426,0.183247581124306,-0.033673554658890,-0.039098311215639,-0.020097905769944,-0.156847000122070,-0.223486110568047,0.110446065664291,-0.067133776843548,-0.085961513221264,-0.069851614534855) * MODEL5_texOff(vec2(0,1));
res += mat4(0.082295916974545,0.001699922839180,0.216813817620277,0.088625408709049,0.218906715512276,-0.085457719862461,0.052919976413250,0.009098242968321,-0.024681327864528,-0.049539219588041,0.150442332029343,-0.111771419644356,0.019618447870016,0.050488710403442,0.110972248017788,-0.105064608156681) * MODEL5_texOff(vec2(1,-1));
res += mat4(-0.039436072111130,-0.021352471783757,0.059341415762901,-0.330107539892197,-0.112660646438599,-0.021773751825094,-0.092098794877529,0.024861700832844,-0.013688591308892,0.072132676839828,-0.297561049461365,0.035908840596676,-0.237098321318626,-0.072168916463852,0.000417904899223,0.033983513712883) * MODEL5_texOff(vec2(1,0));
res += mat4(0.062062907963991,0.001388168544509,0.191188827157021,-0.095286898314953,0.102847777307034,0.048663757741451,-0.046478495001793,-0.025191253051162,0.151974007487297,-0.112586006522179,0.041292492300272,0.081720836460590,0.019139513373375,-0.123408615589142,0.013761121779680,-0.130025327205658) * MODEL5_texOff(vec2(1,1));
res += mat4(0.057505611330271,0.041051190346479,-0.174971491098404,-0.025363802909851,-0.057814400643110,-0.038318168371916,-0.024186111986637,-0.153773173689842,0.132950246334076,0.051964476704597,-0.069508492946625,0.013889576308429,0.009129385463893,-0.130325153470039,-0.029383802786469,0.035077895969152) * MODEL6_texOff(vec2(-1,-1));
res += mat4(-0.066857993602753,-0.265272945165634,-0.032995015382767,-0.029282024130225,-0.034695036709309,0.072646245360374,0.184160515666008,-0.012773870490491,-0.201369315385818,0.316232353448868,0.351909846067429,-0.197670847177505,0.039220675826073,-0.006850940175354,0.052398767322302,0.122463315725327) * MODEL6_texOff(vec2(-1,0));
res += mat4(0.004067427478731,-0.119637086987495,-0.172703430056572,0.095688939094543,-0.034342847764492,-0.057113349437714,-0.194175288081169,0.021040173247457,-0.050800479948521,0.053128488361835,-0.050129488110542,-0.013329693116248,0.038149002939463,-0.080558322370052,-0.138104155659676,0.233565405011177) * MODEL6_texOff(vec2(-1,1));
res += mat4(-0.026466559618711,-0.126268267631531,0.088257238268852,0.210427358746529,0.213167712092400,-0.107599116861820,0.029103903099895,-0.107458434998989,0.015201390720904,0.080139674246311,-0.425343126058578,-0.035799697041512,0.048635367304087,-0.194362089037895,-0.090672224760056,-0.071442067623138) * MODEL6_texOff(vec2(0,-1));
res += mat4(-0.052308123558760,0.003122134832665,0.070930980145931,0.162849485874176,-0.237437888979912,-0.050904385745525,0.284706473350525,-0.006630179472268,-0.077314354479313,-0.018690047785640,-0.182853087782860,-1.045253753662109,0.041056014597416,0.003278164658695,0.455398470163345,0.132155001163483) * MODEL6_texOff(vec2(0,0));
res += mat4(0.044662304222584,0.078423060476780,0.053356599062681,0.120115362107754,0.148641183972359,0.030375353991985,-0.166229426860809,-0.049562804400921,-0.077635444700718,0.019311118870974,-0.880159378051758,-0.298535555601120,0.008056757040322,-0.054707713425159,-0.167747363448143,0.072408072650433) * MODEL6_texOff(vec2(0,1));
res += mat4(0.007143597118556,-0.004476081114262,0.005402387119830,-0.210106998682022,0.142513185739517,0.100536026060581,0.204219639301300,-0.146421730518341,0.025074923411012,-0.056680731475353,-0.044735711067915,0.069888263940811,-0.068127751350403,0.129968792200089,-0.195137351751328,-0.009532546624541) * MODEL6_texOff(vec2(1,-1));
res += mat4(-0.194693818688393,0.188153460621834,-0.047136805951595,-0.181520938873291,-0.142212793231010,0.075524970889091,-0.336102128028870,-0.047967713326216,0.005707026459277,-0.035975791513920,-0.204169765114784,-0.207289114594460,0.008869167417288,0.155602425336838,0.344417035579681,-0.201946675777435) * MODEL6_texOff(vec2(1,0));
res += mat4(0.003207932226360,0.037254970520735,-0.063260145485401,-0.220099210739136,0.053114876151085,0.011593574658036,0.175449639558792,0.001166399219073,-0.002525868127123,-0.033487852662802,-0.235705360770226,-0.005815847311169,-0.038143720477819,0.035845071077347,-0.046658195555210,0.239591628313065) * MODEL6_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(-0.203521683812141,-0.079170688986778,0.042060796171427,-0.045337229967117) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 3.200 * > OUTPUT.h LUMA.h 3.200 * > *
//!COMPONENTS 4
//!BIND MODEL1
//!BIND MODEL2
//!BIND MODEL3
//!BIND MODEL4
//!BIND MODEL5
//!BIND MODEL6
//!SAVE MODEL12
//!DESC [AiUpscale_Medium_4x_Photo] mapping 2_6

vec4 hook()
{
vec4 res = vec4(0.185031786561012,0.145012274384499,0.110403642058372,-0.058953549712896);
res += mat4(0.038574751466513,0.235552713274956,-0.386075615882874,-0.127272725105286,0.001270823646337,-0.010441472753882,0.072169423103333,-0.013493635691702,-0.238165304064751,0.053326100111008,0.108227908611298,0.144980788230896,-0.055731914937496,0.043390393257141,0.024707276374102,0.022229509428144) * MODEL1_texOff(vec2(-1,-1));
res += mat4(-0.013759511522949,0.032655920833349,-0.348647028207779,0.177744284272194,-0.041238851845264,0.268761515617371,0.286714851856232,0.161703437566757,0.033577177673578,-0.258716076612473,-0.248048961162567,0.229461416602135,0.293938964605331,0.034621130675077,0.200321510434151,-0.145600795745850) * MODEL1_texOff(vec2(-1,0));
res += mat4(0.024581730365753,-0.007456323597580,-0.196849599480629,0.258623063564301,0.053467370569706,0.315076440572739,0.258904039859772,0.068580090999603,0.116416953504086,-0.190953671932220,-0.042274333536625,-0.188887044787407,0.044882401823997,0.213248208165169,-0.086383245885372,0.147907286882401) * MODEL1_texOff(vec2(-1,1));
res += mat4(0.159325659275055,0.309511542320251,-0.538893043994904,0.147103071212769,-0.183243185281754,0.051224488765001,0.063921034336090,-0.099174298346043,0.089945614337921,0.026290701702237,0.224385097622871,0.385380506515503,-0.203137382864952,0.050384528934956,-0.045335359871387,0.087196476757526) * MODEL1_texOff(vec2(0,-1));
res += mat4(0.051718246191740,-0.185823261737823,-0.248474836349487,0.225368678569794,0.017390241846442,-0.183234483003616,0.091786831617355,-0.029791733250022,0.038194555789232,-0.149642020463943,0.159468725323677,0.089718766510487,-0.325436860322952,-0.078410647809505,-0.144815921783447,0.025751395151019) * MODEL1_texOff(vec2(0,0));
res += mat4(0.034854780882597,-0.144088715314865,-0.340791225433350,0.068229928612709,-0.085096828639507,0.373516857624054,0.157775521278381,-0.057631723582745,0.106390677392483,-0.147381499409676,-0.047528840601444,-0.012323040515184,-0.026729080826044,0.184093773365021,0.018628463149071,0.038377556949854) * MODEL1_texOff(vec2(0,1));
res += mat4(-0.163068085908890,0.144067987799644,-0.537657618522644,0.228711605072021,-0.011295597068965,0.263214528560638,0.175970196723938,-0.037996072322130,0.180479869246483,0.048043195158243,-0.117013856768608,0.197692200541496,-0.017988098785281,0.169771865010262,0.093074746429920,-0.075979351997375) * MODEL1_texOff(vec2(1,-1));
res += mat4(-0.117043659090996,-0.245324730873108,-0.477280229330063,0.128467366099358,0.013695162720978,0.049964275211096,0.063819333910942,0.120405159890652,-0.214179784059525,-0.066666528582573,0.053255155682564,-0.255507618188858,0.059447005391121,0.077098600566387,0.021262573078275,0.015827029943466) * MODEL1_texOff(vec2(1,0));
res += mat4(-0.116634272038937,0.020897505804896,-0.501044869422913,-0.062418948858976,0.070818722248077,0.218105405569077,0.090084798634052,-0.068829216063023,-0.050439745187759,-0.012519164942205,0.254405319690704,0.026756241917610,-0.029433952644467,-0.031819067895412,0.068236634135246,0.024826137349010) * MODEL1_texOff(vec2(1,1));
res += mat4(-0.052257258445024,-0.122446522116661,0.103700667619705,0.105756483972073,0.046979915350676,0.116563886404037,-0.260939359664917,-0.107442051172256,-0.102036260068417,0.139749914407730,-0.043362803757191,-0.053044166415930,-0.057907544076443,-0.069485247135162,0.000327830930473,-0.075200408697128) * MODEL2_texOff(vec2(-1,-1));
res += mat4(-0.131211996078491,-0.020726971328259,-0.015310016460717,-0.029080737382174,-0.096735328435898,-0.059928562492132,-0.031354218721390,0.200016140937805,-0.011474859900773,0.021003345027566,-0.181735098361969,0.296276509761810,0.027246493846178,0.030246293172240,-0.167678669095039,0.293762803077698) * MODEL2_texOff(vec2(-1,0));
res += mat4(-0.045126374810934,0.051166132092476,-0.212718904018402,-0.038305982947350,-0.149859994649887,-0.051943045109510,-0.020118301734328,0.118619807064533,0.022991361096501,-0.071440272033215,0.098567098379135,0.096634894609451,0.120917953550816,-0.251705259084702,0.073615238070488,0.135553434491158) * MODEL2_texOff(vec2(-1,1));
res += mat4(-0.064247652888298,-0.058689370751381,-0.079958029091358,-0.036860231310129,-0.065392218530178,0.185327947139740,-0.074149549007416,0.205797016620636,-0.080580703914165,-0.048754733055830,0.275123834609985,0.079361110925674,-0.116596125066280,0.166454493999481,-0.016392186284065,0.063786707818508) * MODEL2_texOff(vec2(0,-1));
res += mat4(0.175947800278664,0.408422350883484,0.138440981507301,-0.152232751250267,0.049157842993736,-0.517737865447998,-0.327032744884491,-0.040215816348791,-0.193883627653122,-0.084458537399769,-0.085569880902767,-0.065825358033180,-0.102594479918480,0.000982848927379,-0.063393339514732,-0.083475001156330) * MODEL2_texOff(vec2(0,0));
res += mat4(-0.074296414852142,-0.250964581966400,0.078270561993122,0.197977080941200,-0.042586054652929,0.005694827530533,-0.260563284158707,-0.115811653435230,-0.122453354299068,-0.040192741900682,-0.113186717033386,-0.059898331761360,0.162834435701370,-0.054407723248005,0.213203027844429,-0.102747753262520) * MODEL2_texOff(vec2(0,1));
res += mat4(0.120115734636784,-0.020844593644142,0.004683604929596,-0.085786797106266,-0.005084075499326,0.180319711565971,-0.099886372685432,0.124753832817078,0.138737142086029,-0.055788379162550,0.017918776720762,0.201028659939766,0.076199494302273,0.039797358214855,-0.023554679006338,0.154700934886932) * MODEL2_texOff(vec2(1,-1));
res += mat4(0.235265776515007,-0.050387904047966,-0.053834155201912,0.152233168482780,-0.434703558683395,0.060024131089449,0.020513758063316,-0.115049347281456,-0.102615267038345,-0.077892012894154,-0.101076282560825,-0.030751409009099,0.102046564221382,0.105796307325363,-0.138581648468971,-0.078336156904697) * MODEL2_texOff(vec2(1,0));
res += mat4(0.033355798572302,-0.105691611766815,0.150419861078262,-0.139943704009056,-0.214358359575272,0.295537531375885,0.078894086182117,-0.054098431020975,0.003172295168042,-0.105653606355190,-0.046705052256584,-0.043189745396376,-0.008226214908063,-0.155055955052376,0.027532232925296,-0.045699268579483) * MODEL2_texOff(vec2(1,1));
res += mat4(0.034683287143707,0.015856301411986,-0.069565288722515,-0.060999199748039,-0.112831190228462,0.023597963154316,0.135566249489784,-0.034884717315435,-0.089463457465172,0.037742562592030,0.054109122604132,-0.237985357642174,-0.069303013384342,-0.206823199987411,-0.152245238423347,-0.149980738759041) * MODEL3_texOff(vec2(-1,-1));
res += mat4(0.036809701472521,-0.026113897562027,-0.091313794255257,0.068048335611820,0.064134441316128,-0.103375151753426,0.018787713721395,-0.072859354317188,-0.027022542431951,-0.354701519012451,-0.003427164163440,0.056380972266197,0.057325813919306,0.005674422718585,0.168466389179230,0.140676453709602) * MODEL3_texOff(vec2(-1,0));
res += mat4(-0.076616533100605,0.005592933855951,0.132636114954948,-0.137223199009895,-0.136934921145439,0.055513113737106,-0.110116206109524,-0.054002337157726,-0.012584201060236,-0.165523946285248,0.115526400506496,-0.020367382094264,0.016440128907561,0.139758273959160,0.064043432474136,-0.122020997107029) * MODEL3_texOff(vec2(-1,1));
res += mat4(-0.204827472567558,0.054121661931276,0.003383123781532,-0.053508587181568,0.079621307551861,0.043197121471167,0.115786015987396,-0.082810685038567,-0.109938845038414,-0.110181421041489,0.029066776856780,0.331656485795975,-0.090298175811768,-0.225490197539330,-0.192618370056152,0.066110193729401) * MODEL3_texOff(vec2(0,-1));
res += mat4(-0.249476477503777,0.107474103569984,0.143782183527946,0.017682027071714,-0.105925865471363,0.187881633639336,0.115973100066185,-0.069696314632893,0.132398352026939,-0.564205527305603,-0.109574764966965,0.096654385328293,-0.079917043447495,-0.037450652569532,-0.075826667249203,0.312509208917618) * MODEL3_texOff(vec2(0,0));
res += mat4(0.133520200848579,-0.130624964833260,0.176057696342468,-0.014826364815235,-0.081562355160713,-0.279522716999054,-0.014885300770402,0.234170377254486,-0.063885398209095,-0.119103588163853,-0.089260861277580,-0.102063171565533,0.055106580257416,0.060858722776175,-0.069548554718494,-0.146090716123581) * MODEL3_texOff(vec2(0,1));
res += mat4(0.129992276430130,0.068149194121361,-0.086841270327568,-0.092831708490849,-0.007275274023414,0.202116921544075,-0.222115948796272,0.062260922044516,0.310032099485397,-0.016465222463012,0.044671583920717,-0.055245418101549,-0.123339414596558,-0.073495142161846,0.182928502559662,-0.072364240884781) * MODEL3_texOff(vec2(1,-1));
res += mat4(0.051895000040531,0.093408271670341,0.231652721762657,-0.067557297646999,0.115870214998722,-0.047295730561018,0.168884202837944,0.230688825249672,-0.045126169919968,-0.169793352484703,0.054135613143444,-0.236879199743271,0.056624274700880,0.106526657938957,0.097511202096939,-0.030883377417922) * MODEL3_texOff(vec2(1,0));
res += mat4(0.029901014640927,-0.010772135108709,0.086599312722683,0.030641421675682,-0.078204765915871,-0.005439444445074,-0.062228009104729,-0.042810689657927,0.051479410380125,-0.086834944784641,-0.082410186529160,-0.008924306370318,0.106129124760628,0.107927329838276,0.088539615273476,0.247588902711868) * MODEL3_texOff(vec2(1,1));
res += mat4(-0.028171848505735,-0.042839881032705,0.181357130408287,0.156057670712471,-0.033491972833872,-0.035794064402580,0.008092782460153,-0.300325930118561,0.010675474070013,0.033891495317221,-0.129848465323448,-0.028217388316989,-0.087837651371956,-0.010565541684628,-0.045064970850945,-0.017199069261551) * MODEL4_texOff(vec2(-1,-1));
res += mat4(0.005948699079454,-0.153190478682518,-0.139065235853195,-0.131761059165001,0.056506302207708,-0.079952314496040,0.120561376214027,0.358365505933762,0.102462865412235,0.056848548352718,0.069422997534275,-0.124983593821526,0.029180781915784,0.043667171150446,-0.104981295764446,-0.093082554638386) * MODEL4_texOff(vec2(-1,0));
res += mat4(0.072476558387280,0.092536762356758,-0.113084293901920,-0.081377401947975,-0.068146951496601,0.036438070237637,0.310769915580750,0.010649653151631,-0.002266413299367,0.151338323950768,0.152457341551781,0.060012515634298,-0.014247496612370,-0.056338328868151,0.093566134572029,-0.075023546814919) * MODEL4_texOff(vec2(-1,1));
res += mat4(0.110835120081902,-0.090688370168209,0.135553717613220,0.005687432829291,-0.057983852922916,0.072742082178593,0.239024817943573,-0.048615943640471,0.058738257735968,0.137444898486137,-0.310003072023392,-0.190682470798492,0.056331992149353,0.079558558762074,-0.033235784620047,-0.096910484135151) * MODEL4_texOff(vec2(0,-1));
res += mat4(0.100906059145927,0.173404365777969,0.213016346096992,-0.107735022902489,0.480079472064972,-0.185028791427612,0.144219666719437,0.304885417222977,-0.104946650564671,0.131060153245926,-0.143917784094810,0.098197475075722,-0.039857015013695,-0.039064019918442,-0.053959734737873,-0.247703194618225) * MODEL4_texOff(vec2(0,0));
res += mat4(-0.024774063378572,0.033212296664715,-0.047978870570660,-0.013100934214890,0.015297665260732,0.179884612560272,0.276651889085770,-0.275736570358276,0.023650901392102,0.184821918606758,-0.059558615088463,0.036834660917521,-0.033348705619574,-0.038632743060589,-0.129894748330116,0.041702009737492) * MODEL4_texOff(vec2(0,1));
res += mat4(0.203999191522598,0.021152347326279,-0.084116473793983,0.005896830931306,-0.379620164632797,-0.087699227035046,0.141882941126823,-0.006266936659813,-0.050227440893650,0.149278864264488,-0.247716054320335,0.018851695582271,0.041706044226885,0.116042532026768,0.031729742884636,0.004762543365359) * MODEL4_texOff(vec2(1,-1));
res += mat4(0.118319265544415,-0.057227961719036,-0.088578149676323,0.233408406376839,0.260449737310410,-0.059391882270575,0.027338190004230,0.068503573536873,0.098389238119125,0.058730810880661,-0.184476658701897,0.149380430579185,-0.270658999681473,0.109548263251781,0.318443506956100,0.168541550636292) * MODEL4_texOff(vec2(1,0));
res += mat4(0.054948642849922,0.000651561247651,-0.049473572522402,0.049670070409775,0.033912166953087,0.152126178145409,-0.083765991032124,-0.058178342878819,0.155856132507324,0.062528587877750,-0.277365326881409,0.063315846025944,0.016468239948153,0.000143758079503,-0.056654240936041,0.076317906379700) * MODEL4_texOff(vec2(1,1));
res += mat4(-0.035868324339390,-0.200565010309219,0.200162082910538,0.017174210399389,-0.159576222300529,0.175622805953026,-0.147732332348824,0.055396519601345,0.045637611299753,-0.125033989548683,0.101699389517307,0.077504970133305,-0.084308154881001,-0.054275881499052,-0.035958677530289,-0.099214836955070) * MODEL5_texOff(vec2(-1,-1));
res += mat4(0.015505705960095,-0.201499074697495,0.023154269903898,-0.153672322630882,-0.119597710669041,-0.008260698057711,0.051163900643587,-0.138630419969559,-0.131251692771912,-0.024573195725679,-0.105126090347767,-0.003454029094428,0.018421072512865,0.204452306032181,-0.017351638525724,0.000864800822455) * MODEL5_texOff(vec2(-1,0));
res += mat4(0.030867746099830,-0.146310955286026,0.013975503854454,-0.051760304719210,-0.108614176511765,-0.019985537976027,-0.008792923763394,0.126036971807480,-0.064816705882549,0.004281594883651,-0.052494239062071,0.118021458387375,0.070446409285069,0.016852272674441,0.008756500668824,0.082219377160072) * MODEL5_texOff(vec2(-1,1));
res += mat4(-0.254302561283112,-0.491872876882553,-0.110501356422901,-0.074699595570564,0.033639337867498,0.005775015335530,0.141560256481171,-0.012815088964999,0.032941050827503,-0.021082572638988,-0.257357865571976,-0.100969322025776,-0.042527705430984,-0.062809824943542,-0.079036369919777,0.044517431408167) * MODEL5_texOff(vec2(0,-1));
res += mat4(-0.206564843654633,-0.360593914985657,-0.025229182094336,-0.016546001657844,0.035396620631218,-0.041833098977804,0.169607177376747,0.126088351011276,0.075233682990074,-0.137176230549812,0.039369374513626,-0.352912664413452,-0.098543703556061,0.194217577576637,0.048555798828602,0.011873084120452) * MODEL5_texOff(vec2(0,0));
res += mat4(0.055039923638105,-0.320230305194855,0.142647057771683,0.055971011519432,0.036430262029171,-0.171125888824463,-0.052036501467228,-0.054764140397310,0.029513230547309,0.004063505213708,-0.010257070884109,0.108659736812115,0.156489536166191,-0.032586295157671,0.282584249973297,-0.098912768065929) * MODEL5_texOff(vec2(0,1));
res += mat4(-0.701396465301514,0.007009542547166,-0.041412983089685,-0.130188912153244,-0.323839336633682,0.039062768220901,-0.175946623086929,-0.029212662950158,-0.092749431729317,-0.025169758126140,0.075207389891148,0.007307311054319,0.014065342023969,0.197578355669975,0.074386626482010,-0.098392821848392) * MODEL5_texOff(vec2(1,-1));
res += mat4(0.090560995042324,-0.137756362557411,0.077494546771049,0.051377877593040,-0.135782629251480,-0.023703236132860,0.032064709812403,0.025566734373569,0.242884591221809,-0.128295063972473,-0.173010334372520,0.124627113342285,-0.021165799349546,0.095771066844463,-0.024693675339222,0.069095611572266) * MODEL5_texOff(vec2(1,0));
res += mat4(-0.013760823756456,-0.100796669721603,0.015412367880344,-0.033647682517767,0.008893722668290,-0.230314195156097,0.046911768615246,-0.013045561499894,-0.089540719985962,-0.010614700615406,-0.163060694932938,-0.223475649952888,0.257031381130219,-0.070096321403980,0.076738752424717,0.078003309667110) * MODEL5_texOff(vec2(1,1));
res += mat4(0.049773260951042,-0.105712011456490,-0.036925721913576,-0.004770990461111,-0.083697788417339,0.040745150297880,0.088400803506374,0.068402133882046,0.005629512481391,0.023168124258518,0.190714955329895,0.016070058569312,0.038147442042828,0.051473170518875,0.016802778467536,0.083082295954227) * MODEL6_texOff(vec2(-1,-1));
res += mat4(0.010098951868713,0.045677922666073,0.024500835686922,-0.007346605416387,0.111698225140572,0.013802842237055,-0.081550739705563,-0.107350170612335,-0.071518182754517,0.022121874615550,0.182832062244415,0.011836281046271,0.045559015125036,0.008589440956712,0.112414851784706,-0.131277427077293) * MODEL6_texOff(vec2(-1,0));
res += mat4(0.012541810981929,-0.101574197411537,0.010611050762236,0.125042170286179,-0.083087503910065,0.029145266860723,-0.118526212871075,0.017244050279260,0.017605084925890,-0.075707778334618,0.084344238042831,0.036587044596672,0.139062017202377,-0.023224126547575,-0.038121186196804,-0.092694401741028) * MODEL6_texOff(vec2(-1,1));
res += mat4(-0.028981247916818,-0.151687130331993,-0.028530005365610,0.049385230988264,-0.033146969974041,0.013745954260230,-0.085930638015270,-0.151857152581215,-0.384787976741791,-0.088639833033085,-0.035873327404261,-0.068320699036121,0.050867222249508,0.044867835938931,-0.108419157564640,-0.034504026174545) * MODEL6_texOff(vec2(0,-1));
res += mat4(-0.012126757763326,0.037195309996605,-0.288044989109039,-0.061551250517368,-0.111489571630955,0.053861554712057,0.100587651133537,-0.044099405407906,-1.101798295974731,-0.079477176070213,0.076668925583363,-0.123567320406437,-0.077567219734192,0.308068513870239,0.106908164918423,-0.055808231234550) * MODEL6_texOff(vec2(0,0));
res += mat4(-0.064725808799267,-0.030597720295191,-0.054727502167225,0.039882130920887,-0.033719159662724,-0.126670017838478,-0.031352818012238,0.375354737043381,0.106313988566399,0.020715905353427,0.057982049882412,-0.010873470455408,0.162845566868782,0.062998697161674,0.043741237372160,0.017168372869492) * MODEL6_texOff(vec2(0,1));
res += mat4(-0.077151499688625,-0.102109953761101,0.173334643244743,-0.076297424733639,-0.213418573141098,-0.073982246220112,-0.368341118097305,0.039694245904684,-0.205318495631218,0.063584610819817,0.072727970778942,-0.090097539126873,-0.123887889087200,-0.060631267726421,0.181262120604515,0.126101791858673) * MODEL6_texOff(vec2(1,-1));
res += mat4(-0.131812989711761,0.047944229096174,0.113504104316235,0.084174461662769,0.138749659061432,-0.132599458098412,-0.090119652450085,0.129382789134979,-0.168954074382782,0.032785270363092,-0.113299973309040,0.048381295055151,-0.102694988250732,0.023860607296228,0.062779814004898,-0.134534150362015) * MODEL6_texOff(vec2(1,0));
res += mat4(-0.219665393233299,0.055018752813339,0.019816894084215,0.061054702848196,-0.368143528699875,-0.075078934431076,0.172801226377487,-0.021285185590386,-0.003404320683330,-0.010717406868935,-0.016532512381673,-0.042111579328775,0.042315751314163,-0.022507261484861,-0.130483359098434,-0.003933296073228) * MODEL6_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(-0.062117088586092,0.021231269463897,0.119900099933147,-0.309140056371689) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 3.200 * > OUTPUT.h LUMA.h 3.200 * > *
//!COMPONENTS 4
//!BIND MODEL7
//!BIND MODEL8
//!BIND MODEL9
//!BIND MODEL10
//!BIND MODEL11
//!BIND MODEL12
//!SAVE MODEL1
//!DESC [AiUpscale_Medium_4x_Photo] mapping 3_1

vec4 hook()
{
vec4 res = vec4(-0.087484084069729,-0.069475837051868,-0.016050538048148,-0.085372745990753);
res += mat4(0.095924220979214,-0.125869646668434,0.120141834020615,-0.102944292128086,0.047591172158718,0.042791806161404,0.130727887153625,0.069319523870945,0.082378506660461,0.043669663369656,-0.001054596272297,-0.043545812368393,0.042342491447926,0.195593953132629,0.101227715611458,0.004553745035082) * MODEL7_texOff(vec2(-1,-1));
res += mat4(0.016538823023438,-0.079835698008537,-0.075296089053154,0.018215585500002,0.206131070852280,0.139743372797966,0.115583240985870,-0.069940865039825,0.100987583398819,0.032439883798361,0.018050212413073,0.055654384195805,-0.070391081273556,0.212133750319481,0.126838818192482,-0.053977426141500) * MODEL7_texOff(vec2(-1,0));
res += mat4(0.046971049159765,0.182762369513512,-0.129531249403954,0.222402855753899,-0.051950458437204,-0.191967040300369,0.074859626591206,-0.098854593932629,0.110269665718079,0.052330188453197,0.020167995244265,-0.049317251890898,-0.018001371994615,-0.090758144855499,0.138189941644669,-0.028883716091514) * MODEL7_texOff(vec2(-1,1));
res += mat4(-0.052421692758799,-0.370872288942337,-0.011424684897065,-0.136536657810211,-0.024707965552807,0.132466703653336,0.102444797754288,0.016781827434897,-0.061771780252457,0.048513967543840,0.068520434200764,0.029142305254936,-0.099118724465370,0.103114664554596,-0.014210273511708,0.061137091368437) * MODEL7_texOff(vec2(0,-1));
res += mat4(-0.112451650202274,0.110988974571228,-0.243996128439903,0.281103342771530,0.128004029393196,0.085360169410706,0.295644134283066,-0.145096957683563,0.048769202083349,-0.158808082342148,0.219816818833351,0.121299698948860,-0.188690662384033,-0.292978495359421,-0.060956470668316,-0.310959994792938) * MODEL7_texOff(vec2(0,0));
res += mat4(-0.097983598709106,0.119896367192268,-0.196715414524078,0.092745117843151,0.066246703267097,-0.152072310447693,-0.015723031014204,-0.197480678558350,-0.120462685823441,0.041428145021200,-0.092820495367050,-0.106963224709034,-0.077640578150749,0.091011762619019,-0.074343219399452,0.055980168282986) * MODEL7_texOff(vec2(0,1));
res += mat4(0.052892152220011,-0.125715255737305,-0.040659893304110,-0.085822328925133,-0.050108667463064,0.103034406900406,0.024049477651715,-0.020017089322209,0.061103373765945,0.018264800310135,0.007876698859036,0.004744300618768,-0.053467500954866,0.005115513224155,-0.004303707741201,0.085754036903381) * MODEL7_texOff(vec2(1,-1));
res += mat4(-0.099952593445778,0.063365682959557,-0.066144958138466,0.077603757381439,-0.019450014457107,0.089158028364182,-0.016329521313310,-0.093116357922554,0.059149321168661,-0.142083659768105,-0.201742023229599,0.120777055621147,-0.008873644284904,-0.168832764029503,-0.209702432155609,-0.014570691622794) * MODEL7_texOff(vec2(1,0));
res += mat4(0.016551557928324,0.116444312036037,-0.073425576090813,0.055790703743696,-0.104040242731571,-0.080304764211178,-0.073557242751122,-0.118461735546589,-0.036185588687658,0.029847487807274,0.035349342972040,0.057579368352890,-0.107678130269051,-0.050327572971582,-0.087782353162766,-0.001804182422347) * MODEL7_texOff(vec2(1,1));
res += mat4(-0.005299284122884,-0.047562804073095,-0.051196858286858,-0.014765270985663,-0.098649144172668,0.068973153829575,-0.099097914993763,-0.105232499539852,-0.142341881990433,0.132907897233963,-0.113894395530224,-0.056883752346039,-0.066599622368813,-0.196503564715385,-0.026926834136248,-0.025967458263040) * MODEL8_texOff(vec2(-1,-1));
res += mat4(0.126415386795998,-0.000283644010779,-0.048439808189869,0.004528363235295,-0.059980161488056,0.009840496815741,-0.016069434583187,0.074114963412285,-0.109824702143669,0.065824449062347,0.178795695304871,-0.008515545167029,0.173884019255638,-0.108862116932869,-0.073747232556343,0.113661944866180) * MODEL8_texOff(vec2(-1,0));
res += mat4(0.049197204411030,-0.054821062833071,-0.078038580715656,0.084689237177372,0.017822680994868,-0.002835134742782,0.062332455068827,-0.002827948890626,-0.013698287308216,0.061653085052967,0.036792285740376,-0.046597454696894,-0.029961710795760,0.079109705984592,-0.205236554145813,0.023947173729539) * MODEL8_texOff(vec2(-1,1));
res += mat4(-0.046231221407652,-0.198885366320610,-0.034246202558279,-0.213846594095230,-0.235334321856499,-0.026107814162970,-0.055926017463207,0.089310549199581,-0.163187041878700,-0.214941650629044,0.295751869678497,-0.005953439977020,-0.112801164388657,-0.149074196815491,-0.107247985899448,0.118451528251171) * MODEL8_texOff(vec2(0,-1));
res += mat4(-0.241978242993355,-0.054969459772110,-0.428170770406723,-0.019552696496248,-0.342348843812943,-0.090781167149544,-0.358034700155258,-0.104824706912041,0.002863112604246,-0.210897684097290,-0.203359529376030,-0.265957772731781,0.051925197243690,-0.028719861060381,0.294855207204819,0.269307225942612) * MODEL8_texOff(vec2(0,0));
res += mat4(-0.154621630907059,0.006370580755174,-0.077647209167480,0.226554796099663,0.098281428217888,0.192594215273857,-0.405529618263245,0.395508319139481,0.150009199976921,0.127640515565872,-0.134599506855011,0.324862927198410,-0.131905645132065,0.125326037406921,0.284713238477707,-0.038617864251137) * MODEL8_texOff(vec2(0,1));
res += mat4(-0.083738058805466,-0.291122317314148,0.028357872739434,-0.011023424565792,-0.125671342015266,-0.102412633597851,0.090520597994328,0.124345384538174,0.349634140729904,-0.111609794199467,-0.220868557691574,0.069010689854622,-0.076847217977047,-0.108971416950226,0.048648450523615,-0.025647761300206) * MODEL8_texOff(vec2(1,-1));
res += mat4(-0.012706659734249,0.011982710100710,0.274649858474731,-0.040386606007814,-0.145279526710510,-0.088727094233036,-0.100008949637413,-0.050270594656467,0.090357773005962,0.127698883414268,-0.374089926481247,0.044231403619051,0.255676478147507,-0.042310643941164,0.168090149760246,0.085025005042553) * MODEL8_texOff(vec2(1,0));
res += mat4(0.074311569333076,-0.081709869205952,-0.074034050107002,0.036145556718111,0.012898817658424,0.022653661668301,-0.019776266068220,0.190372884273529,-0.108455017209053,0.000727156118955,0.085565306246281,-0.184515655040741,0.043751414865255,0.090372748672962,-0.174179866909981,0.074661061167717) * MODEL8_texOff(vec2(1,1));
res += mat4(0.145555004477501,-0.018025945872068,0.039578624069691,0.197523787617683,-0.044540148228407,0.077590398490429,-0.029842056334019,-0.024125372990966,0.005202396307141,-0.049884200096130,0.050749640911818,-0.045551311224699,-0.181736916303635,0.140522256493568,-0.052089329808950,-0.030959846451879) * MODEL9_texOff(vec2(-1,-1));
res += mat4(-0.265424549579620,-0.048766747117043,0.013455795124173,-0.154657915234566,0.055699337273836,-0.156236484646797,-0.035717923194170,-0.118293434381485,-0.299897819757462,0.031672451645136,0.221968635916710,-0.007081840652972,0.009700542315841,-0.071478769183159,0.085721835494041,-0.006659281905740) * MODEL9_texOff(vec2(-1,0));
res += mat4(-0.038239419460297,-0.143788993358612,-0.044927079230547,0.106849677860737,0.123952627182007,0.190308824181557,-0.087735600769520,0.248512104153633,-0.141969278454781,0.017159322276711,0.212274953722954,0.078112773597240,0.000250295037404,-0.007080459035933,0.091519556939602,0.028630943968892) * MODEL9_texOff(vec2(-1,1));
res += mat4(0.063469722867012,0.038229741156101,0.024022111669183,0.168570801615715,0.004126088228077,0.186099156737328,0.084984734654427,0.054017454385757,-0.000483048876049,-0.156985580921173,0.023446697741747,0.051138278096914,0.014698619954288,0.560400068759918,-0.310500144958496,0.026060596108437) * MODEL9_texOff(vec2(0,-1));
res += mat4(-0.049360234290361,-0.055188518017530,-0.254573553800583,-0.096979811787605,0.339035511016846,-0.354802072048187,0.165153563022614,-0.198535859584808,0.087175637483597,0.041648060083389,-0.269424915313721,-0.142968028783798,0.038558188825846,-0.310031861066818,0.066061988472939,-0.057816524058580) * MODEL9_texOff(vec2(0,0));
res += mat4(0.179787218570709,-0.134376645088196,-0.025443453341722,-0.087294973433018,-0.107160061597824,0.172724008560181,-0.076984018087387,0.298666119575500,-0.145324140787125,-0.114953048527241,-0.219258442521095,-0.003130056429654,0.027021933346987,0.196161404252052,-0.226230859756470,-0.086041919887066) * MODEL9_texOff(vec2(0,1));
res += mat4(0.083847649395466,0.011408407241106,0.056404799222946,0.060196738690138,-0.034690845757723,-0.048238076269627,-0.039614159613848,0.097883716225624,-0.075983472168446,0.049075916409492,-0.049219503998756,-0.122529812157154,0.251768261194229,-0.113337092101574,0.078652128577232,0.108705461025238) * MODEL9_texOff(vec2(1,-1));
res += mat4(-0.206488832831383,0.128877431154251,0.013778127729893,-0.001107297837734,0.078153535723686,0.014875708147883,0.047069467604160,-0.079383611679077,0.253311008214951,-0.078498959541321,-0.210093811154366,0.014826075173914,-0.028516443446279,0.096946135163307,-0.257175922393799,0.022115180268884) * MODEL9_texOff(vec2(1,0));
res += mat4(0.037856247276068,-0.185047790408134,-0.016217937693000,0.179064318537712,-0.042806383222342,-0.103541724383831,-0.034360885620117,0.021272348240018,0.092279568314552,0.072183303534985,-0.082078978419304,-0.097870588302612,0.022957975044847,0.078883908689022,0.096320450305939,0.049609865993261) * MODEL9_texOff(vec2(1,1));
res += mat4(0.241713225841522,-0.038228467106819,0.071692682802677,0.051936957985163,-0.105658076703548,0.042487245053053,0.071374826133251,0.068177528679371,0.039602629840374,-0.154546260833740,-0.090120330452919,0.203896775841713,-0.087154321372509,0.019350335001945,0.059967916458845,-0.032208062708378) * MODEL10_texOff(vec2(-1,-1));
res += mat4(0.135848417878151,0.076461888849735,0.047793351113796,-0.008792814798653,0.056263666599989,0.111002795398235,0.056114256381989,0.133964031934738,0.043297648429871,0.137401491403580,0.051847208291292,0.021511748433113,0.024079153314233,-0.022976022213697,-0.057563625276089,-0.051819168031216) * MODEL10_texOff(vec2(-1,0));
res += mat4(-0.030201245099306,-0.031935162842274,-0.031844861805439,-0.020316151902080,0.122381716966629,0.026341360062361,0.109849095344543,0.047194939106703,-0.100187510251999,-0.023663321509957,-0.026526620611548,0.005950088147074,-0.071403600275517,-0.110027298331261,-0.025422750040889,-0.020383629947901) * MODEL10_texOff(vec2(-1,1));
res += mat4(0.190073713660240,-0.200903788208961,0.067192547023296,0.161214128136635,-0.338155746459961,-0.468215048313141,-0.061389181762934,0.025421179831028,-0.138506710529327,0.058617945760489,0.009477915242314,0.167123258113861,-0.106087930500507,-0.048695549368858,-0.008046757429838,0.025028595700860) * MODEL10_texOff(vec2(0,-1));
res += mat4(0.050186078995466,0.130619868636131,0.046825271099806,-0.067852891981602,-0.241024389863014,0.436972022056580,-0.591208398342133,0.395012319087982,0.181346029043198,0.157047525048256,0.115705296397209,-0.109257943928242,-0.075296528637409,0.195577725768089,0.024151878431439,0.039963766932487) * MODEL10_texOff(vec2(0,0));
res += mat4(0.149774655699730,-0.058447763323784,0.083713009953499,0.059801340103149,0.176368534564972,-0.310281187295914,0.139953017234802,0.030716923996806,-0.202514931559563,-0.115671373903751,0.179579034447670,-0.004427930805832,-0.152267128229141,-0.109483547508717,0.001998909516260,-0.083805494010448) * MODEL10_texOff(vec2(0,1));
res += mat4(0.180362284183502,-0.108331471681595,0.102209113538265,-0.123333550989628,-0.051824875175953,0.066322706639767,0.157460361719131,0.022569676861167,0.005816080141813,-0.047640953212976,-0.013719941489398,-0.061829999089241,0.000809010351077,0.010857378132641,-0.123970717191696,-0.018603013828397) * MODEL10_texOff(vec2(1,-1));
res += mat4(-0.064841583371162,-0.119258336722851,0.319169968366623,0.082390785217285,-0.086674094200134,-0.084408871829510,0.377922475337982,-0.091926202178001,0.330583423376083,0.057228587567806,-0.146299287676811,0.050682552158833,-0.001930963713676,-0.159120306372643,-0.066104106605053,0.060876168310642) * MODEL10_texOff(vec2(1,0));
res += mat4(0.144708186388016,0.055011991411448,-0.020195802673697,0.127623349428177,0.030332593247294,0.032805535942316,0.054289329797029,0.074111633002758,-0.074143894016743,0.083491548895836,-0.269123882055283,0.168920174241066,0.034755814820528,-0.031974591314793,-0.137780204415321,0.043466947972775) * MODEL10_texOff(vec2(1,1));
res += mat4(0.051082137972116,-0.028856791555882,-0.062890164554119,-0.003587925806642,-0.153341040015221,0.033411983400583,-0.106208324432373,0.014116331003606,0.088234640657902,0.022474348545074,-0.114261470735073,-0.026630440726876,-0.073250703513622,0.052794545888901,-0.016092795878649,0.032036706805229) * MODEL11_texOff(vec2(-1,-1));
res += mat4(0.089222691953182,0.243139222264290,-0.005278234370053,-0.068518787622452,-0.159210801124573,0.166667714715004,-0.044162556529045,0.069213606417179,-0.014140678569674,0.259234696626663,-0.070628881454468,-0.066492490470409,-0.162579730153084,-0.201125323772430,-0.145198628306389,0.044239755719900) * MODEL11_texOff(vec2(-1,0));
res += mat4(0.042714394629002,-0.006924920715392,-0.137830346822739,-0.144072681665421,0.074174635112286,-0.094256319105625,-0.020734302699566,-0.013056214898825,-0.154131636023521,0.008884274400771,-0.099845558404922,-0.085232250392437,-0.035348180681467,0.135701462626457,0.025804888457060,0.317796498537064) * MODEL11_texOff(vec2(-1,1));
res += mat4(0.027581267058849,0.016604511067271,0.015127488411963,0.068187057971954,0.159628346562386,0.059427522122860,0.141855373978615,0.044345755130053,-0.078279413282871,-0.025466127321124,-0.070254132151604,-0.010298891924322,-0.110684417188168,-0.120570287108421,-0.107314109802246,0.019349485635757) * MODEL11_texOff(vec2(0,-1));
res += mat4(0.322518527507782,0.058210913091898,-0.174559265375137,0.119949102401733,0.168277055025101,-0.217404246330261,-0.103498056530952,-0.041887294501066,-0.101048655807972,0.282435566186905,-0.122732408344746,-0.150238513946533,-0.166688725352287,-0.223061129450798,-0.008732770569623,0.098545864224434) * MODEL11_texOff(vec2(0,0));
res += mat4(0.002977705327794,-0.204321309924126,0.249639406800270,-0.379004240036011,0.083553478121758,0.069760426878929,-0.036502767354250,-0.008753254078329,-0.275168687105179,-0.103583469986916,-0.116919904947281,0.042431198060513,0.086147293448448,0.250244170427322,-0.140549346804619,0.375854581594467) * MODEL11_texOff(vec2(0,1));
res += mat4(0.018612191081047,-0.047048069536686,0.027663387358189,0.137954816222191,-0.285275757312775,-0.253136605024338,-0.159493282437325,-0.024513904005289,0.051782995462418,0.083153054118156,-0.087913051247597,0.154073894023895,0.029701253399253,-0.157709449529648,-0.095886923372746,-0.019934920594096) * MODEL11_texOff(vec2(1,-1));
res += mat4(0.036502975970507,0.136120349168777,0.021009441465139,-0.032347988337278,-0.196716070175171,0.286158233880997,-0.384020119905472,0.107003010809422,0.134507566690445,0.080094650387764,-0.217487245798111,-0.105286844074726,0.050328724086285,-0.151813060045242,-0.174247100949287,0.165293008089066) * MODEL11_texOff(vec2(1,0));
res += mat4(0.181693613529205,0.001356417196803,0.014382281340659,-0.129850342869759,-0.006625954993069,-0.186748608946800,-0.134095653891563,-0.057364851236343,0.196631982922554,-0.170065477490425,-0.007788142189384,-0.043956197798252,0.004987307824194,0.010862803086638,0.124397270381451,0.191683039069176) * MODEL11_texOff(vec2(1,1));
res += mat4(-0.270949304103851,0.231079190969467,-0.159744352102280,-0.136252596974373,0.274624556303024,-0.083300784230232,0.092473790049553,0.136582046747208,-0.212235420942307,-0.148448914289474,-0.179994285106659,-0.145667538046837,-0.036075152456760,0.185743376612663,-0.038731735199690,-0.046122863888741) * MODEL12_texOff(vec2(-1,-1));
res += mat4(-0.092605397105217,0.079144872725010,0.020293822512031,-0.067986153066158,0.141619771718979,0.096762642264366,-0.104911379516125,-0.043963976204395,-0.317581713199615,-0.080145075917244,0.045872874557972,0.060671709477901,0.121839977800846,0.079855814576149,-0.036810122430325,-0.132381230592728) * MODEL12_texOff(vec2(-1,0));
res += mat4(0.013266690075397,-0.090847268700600,-0.026253234595060,-0.158417969942093,-0.129930794239044,0.130977496504784,0.009951024316251,0.271833539009094,-0.281799077987671,-0.014920929446816,0.075039304792881,-0.008262667804956,-0.045394685119390,0.042789768427610,0.031738236546516,-0.095089122653008) * MODEL12_texOff(vec2(-1,1));
res += mat4(-0.197346568107605,0.130281835794449,0.031125588342547,-0.046132422983646,0.152781918644905,-0.145084932446480,0.124668866395950,-0.207053631544113,-0.338776499032974,0.068976573646069,-0.165099278092384,-0.151622250676155,-0.069270528852940,0.033769845962524,0.001112761325203,-0.138155162334442) * MODEL12_texOff(vec2(0,-1));
res += mat4(0.012094493024051,0.035606324672699,0.179434955120087,-0.039894063025713,-0.042323332279921,-0.021734545007348,0.122633896768093,0.255992889404297,0.068365477025509,-0.126388236880302,-0.213623523712158,-0.154397264122963,0.059619612991810,-0.061221707612276,0.227508813142776,0.014122111722827) * MODEL12_texOff(vec2(0,0));
res += mat4(-0.001529234577902,-0.185269847512245,0.066595189273357,0.015521622262895,0.028769267722964,-0.046267352998257,0.002325046109036,0.131409451365471,0.041663266718388,0.272708386182785,-0.208549201488495,0.107599273324013,-0.098988048732281,0.141853973269463,0.180159524083138,-0.049873981624842) * MODEL12_texOff(vec2(0,1));
res += mat4(0.173605173826218,0.061475351452827,-0.026144439354539,-0.011702852323651,0.120908118784428,-0.171186923980713,0.087985157966614,0.193554162979126,-0.007512298412621,-0.090669706463814,-0.156953662633896,0.191069290041924,0.221279099583626,0.156790748238564,-0.007765375543386,-0.127104520797729) * MODEL12_texOff(vec2(1,-1));
res += mat4(0.124252706766129,0.007866765372455,-0.346272766590118,0.071380332112312,-0.070963487029076,0.152479425072670,0.081383369863033,0.101723022758961,-0.137860029935837,0.149704456329346,0.185952275991440,-0.153686940670013,-0.044567052274942,0.105568230152130,-0.037249095737934,-0.137146741151810) * MODEL12_texOff(vec2(1,0));
res += mat4(0.023954687640071,-0.117589332163334,-0.173999652266502,-0.083287268877029,0.109232075512409,0.134885802865028,0.053689837455750,0.345426529645920,-0.087020918726921,-0.039627715945244,-0.030900444835424,0.088653594255447,-0.073156550526619,0.004439393524081,0.165981873869896,-0.149817019701004) * MODEL12_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(-0.035337552428246,-0.080466926097870,0.030115652829409,-0.117707930505276) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 3.200 * > OUTPUT.h LUMA.h 3.200 * > *
//!COMPONENTS 4
//!BIND MODEL7
//!BIND MODEL8
//!BIND MODEL9
//!BIND MODEL10
//!BIND MODEL11
//!BIND MODEL12
//!SAVE MODEL2
//!DESC [AiUpscale_Medium_4x_Photo] mapping 3_2

vec4 hook()
{
vec4 res = vec4(-0.012073760852218,-0.084824182093143,-0.082779556512833,-0.193163752555847);
res += mat4(-0.156641811132431,0.036751780658960,-0.015950398519635,0.232913106679916,0.060417901724577,-0.091402739286423,0.139974385499954,-0.042693972587585,0.028718225657940,-0.021033205091953,-0.069294489920139,0.043583191931248,0.010184945538640,-0.076320976018906,0.033236116170883,0.238706082105637) * MODEL7_texOff(vec2(-1,-1));
res += mat4(-0.066077366471291,-0.199232310056686,-0.003080529859290,0.235851019620895,-0.009684660471976,0.225811749696732,0.130657330155373,-0.281439900398254,-0.129222899675369,0.065200716257095,-0.071490861475468,0.047029450535774,-0.052301175892353,0.174250006675720,-0.160881683230400,-0.038534790277481) * MODEL7_texOff(vec2(-1,0));
res += mat4(-0.046326972544193,0.086585342884064,0.037804968655109,0.102032646536827,-0.080489903688431,0.047563374042511,-0.043848555535078,0.048980768769979,-0.080299660563469,0.134604945778847,-0.056533738970757,0.067515283823013,-0.011748694814742,0.163249433040619,0.109857767820358,0.026406638324261) * MODEL7_texOff(vec2(-1,1));
res += mat4(-0.006013873033226,0.084197677671909,-0.123632930219173,0.510966658592224,0.040934722870588,-0.108994752168655,-0.067257069051266,-0.142708420753479,-0.073257379233837,-0.107944481074810,0.058011863380671,0.012377468869090,-0.171408787369728,-0.281489819288254,0.007531482726336,0.090605102479458) * MODEL7_texOff(vec2(0,-1));
res += mat4(0.175493523478508,-0.114328362047672,-0.235188797116280,0.211487710475922,0.123586907982826,0.084394186735153,0.134360939264297,-0.316086381673813,-0.234519004821777,0.198077589273453,0.009627199731767,-0.415629625320435,0.129055470228195,0.012920564040542,-0.083740048110485,-0.098968110978603) * MODEL7_texOff(vec2(0,0));
res += mat4(0.106895655393600,-0.024835025891662,-0.045544221997261,0.212278991937637,-0.046275883913040,0.178756564855576,0.168825104832649,-0.197542309761047,-0.337515741586685,-0.231567740440369,-0.091106794774532,0.280685454607010,0.070478029549122,0.207185029983521,-0.120711393654346,0.125515133142471) * MODEL7_texOff(vec2(0,1));
res += mat4(0.066827252507210,0.106415301561356,0.093143925070763,0.261806726455688,-0.052587263286114,-0.166937679052353,-0.061291102319956,-0.109830416738987,-0.113950259983540,-0.068830475211143,0.061438906937838,0.049998410046101,-0.087747760117054,-0.028732573613524,0.035924453288317,-0.005674916785210) * MODEL7_texOff(vec2(1,-1));
res += mat4(0.037504121661186,-0.069291189312935,-0.074075952172279,0.364130944013596,-0.064520746469498,0.035571236163378,0.042715094983578,-0.179645359516144,-0.408786803483963,-0.078178279101849,-0.092261888086796,-0.306895881891251,0.190258219838142,-0.248447895050049,-0.002789507852867,-0.080953426659107) * MODEL7_texOff(vec2(1,0));
res += mat4(-0.028872726485133,-0.039331659674644,-0.101118154823780,0.180272117257118,0.137154102325439,0.103662773966789,0.142884403467178,-0.215296268463135,-0.349449902772903,-0.055614724755287,-0.199868485331535,0.256037116050720,0.057733230292797,-0.056456271559000,0.116430893540382,0.024441402405500) * MODEL7_texOff(vec2(1,1));
res += mat4(0.041385762393475,0.118054129183292,-0.073639124631882,-0.113604940474033,0.042088393121958,0.037302572280169,0.056953933089972,-0.070013493299484,-0.095307268202305,-0.024489074945450,0.079326264560223,0.149837806820869,0.303774416446686,-0.135834246873856,-0.179803580045700,0.254526555538177) * MODEL8_texOff(vec2(-1,-1));
res += mat4(0.172557801008224,-0.104688800871372,0.052748080343008,-0.106893599033356,-0.096634998917580,0.139820352196693,-0.077077701687813,0.154115766286850,-0.135484859347343,0.326429724693298,-0.056594423949718,0.073145762085915,0.112838417291641,0.082918643951416,0.080870933830738,0.034188281744719) * MODEL8_texOff(vec2(-1,0));
res += mat4(0.078629955649376,-0.069776736199856,-0.019462514668703,-0.073612853884697,0.026173252612352,0.011552521958947,0.033500850200653,-0.071025870740414,-0.058042801916599,-0.142913252115250,0.020208010450006,0.144011259078979,0.049878425896168,0.052886806428432,-0.122608475387096,0.159971326589584) * MODEL8_texOff(vec2(-1,1));
res += mat4(-0.081610284745693,0.262186765670776,-0.064357452094555,-0.162932574748993,-0.024442987516522,-0.129704222083092,0.164668500423431,-0.126027986407280,-0.296880811452866,-0.187597602605820,0.264607459306717,0.063698954880238,0.287526518106461,-0.099338732659817,0.022158563137054,0.285374581813812) * MODEL8_texOff(vec2(0,-1));
res += mat4(-0.202038764953613,-0.462201714515686,-0.202603667974472,0.269465774297714,0.292054474353790,-0.389516741037369,-0.268967092037201,-0.148702040314674,0.434288233518600,-0.339976847171783,-0.250771045684814,0.004738466348499,0.112719297409058,-0.128187283873558,0.123535238206387,0.149876222014427) * MODEL8_texOff(vec2(0,0));
res += mat4(-0.087782159447670,-0.068610265851021,-0.060097958892584,-0.095566287636757,0.101690091192722,0.038185406476259,-0.130284458398819,-0.197988912463188,-0.330532878637314,0.241178795695305,-0.247049078345299,0.107918962836266,0.196381628513336,-0.152999892830849,-0.020513940602541,0.039080146700144) * MODEL8_texOff(vec2(0,1));
res += mat4(0.037262227386236,-0.022303562611341,0.030511213466525,0.188607648015022,-0.061702016741037,-0.138059332966805,0.037804622203112,-0.039686460047960,-0.052886966615915,-0.061226561665535,-0.234758436679840,0.064866065979004,0.032971981912851,0.134965911507607,-0.099085599184036,0.130479067564011) * MODEL8_texOff(vec2(1,-1));
res += mat4(0.043162859976292,0.090738050639629,-0.062670066952705,-0.024355886504054,0.238672748208046,-0.131615415215492,-0.123070098459721,-0.178548648953438,0.206445932388306,-0.160010129213333,0.316776365041733,0.078899271786213,0.205014526844025,0.170406088232994,-0.129409745335579,-0.018403504043818) * MODEL8_texOff(vec2(1,0));
res += mat4(0.018116701394320,-0.123955406248569,-0.006453568581492,0.045120384544134,0.064514867961407,0.114618942141533,-0.047555379569530,-0.133805632591248,-0.144898205995560,0.011989505961537,-0.129715412855148,0.120771415531635,0.132546529173851,-0.115300349891186,0.081384584307671,0.039060954004526) * MODEL8_texOff(vec2(1,1));
res += mat4(-0.154617980122566,-0.098158225417137,0.087701313197613,0.060942091047764,0.056472808122635,0.099753566086292,0.128928989171982,-0.107116110622883,-0.047757461667061,0.029262639582157,0.059922557324171,-0.006701198406518,-0.027298059314489,-0.069438934326172,0.082065038383007,-0.026978952810168) * MODEL9_texOff(vec2(-1,-1));
res += mat4(-0.293233752250671,0.226302713155746,0.123923540115356,0.097182154655457,0.010984658263624,0.016834070906043,0.108038514852524,-0.072336830198765,-0.077754795551300,0.030831158161163,-0.210881352424622,0.063770785927773,-0.053858838975430,0.036967366933823,-0.176574990153313,0.113675653934479) * MODEL9_texOff(vec2(-1,0));
res += mat4(-0.050275772809982,0.192876964807510,-0.103058129549026,0.038648471236229,0.009568519890308,-0.098370380699635,-0.009455665946007,-0.119240835309029,-0.035923380404711,-0.093391090631485,-0.076845951378345,0.070028990507126,-0.025837963446975,-0.026946725323796,0.068993590772152,0.035954546183348) * MODEL9_texOff(vec2(-1,1));
res += mat4(0.141864582896233,-0.231070816516876,0.027222370728850,-0.040801074355841,-0.014777148142457,-0.050228416919708,0.096983551979065,0.182828828692436,0.075398005545139,-0.000879071361851,0.099186338484287,-0.162169739603996,-0.121642813086510,-0.118882186710835,0.135809957981110,0.012075458653271) * MODEL9_texOff(vec2(0,-1));
res += mat4(-0.027916545048356,0.292750209569931,0.055893458425999,-0.041727930307388,0.134022727608681,0.227692365646362,0.115869507193565,-0.139031052589417,0.077739395201206,-0.152145579457283,0.103238575160503,-0.054799441248178,-0.122578799724579,0.223065912723541,0.342734485864639,-0.216345757246017) * MODEL9_texOff(vec2(0,0));
res += mat4(0.070486202836037,-0.347846060991287,0.108250156044960,0.146893978118896,-0.261249035596848,0.131891459226608,-0.145509332418442,0.046186700463295,0.093475259840488,-0.216718032956123,0.160407245159149,-0.020642541348934,-0.090975284576416,0.012471234425902,-0.185720667243004,0.079482905566692) * MODEL9_texOff(vec2(0,1));
res += mat4(0.097888275980949,0.136282145977020,-0.135016873478889,0.053807217627764,-0.186778798699379,0.005433198530227,0.092376269400120,0.068815924227238,0.044233758002520,0.063964866101742,-0.120924748480320,-0.235267505049706,0.093948699533939,-0.274261176586151,0.017335211858153,0.171779289841652) * MODEL9_texOff(vec2(1,-1));
res += mat4(-0.008328272029757,0.074320003390312,0.271464824676514,-0.070282518863678,0.175427600741386,-0.086190536618233,-0.128560677170753,0.134672328829765,-0.080065935850143,-0.267041116952896,0.334641158580780,0.048007130622864,-0.109421148896217,-0.037443906068802,0.164343610405922,0.122739434242249) * MODEL9_texOff(vec2(1,0));
res += mat4(-0.223848760128021,0.144115805625916,0.153014570474625,0.073574349284172,0.008643340319395,-0.008824597112834,0.058150786906481,0.132540479302406,-0.040732372552156,-0.072547383606434,0.012202098034322,-0.130489334464073,-0.106380991637707,-0.029056429862976,-0.139296337962151,-0.059446323662996) * MODEL9_texOff(vec2(1,1));
res += mat4(0.039707433432341,0.054877415299416,0.065639004111290,0.040121585130692,-0.122139252722263,0.048872277140617,0.067544229328632,0.192653387784958,-0.075295932590961,0.018524345010519,-0.036691151559353,-0.019933849573135,0.044697456061840,0.041986145079136,0.126013621687889,0.090323843061924) * MODEL10_texOff(vec2(-1,-1));
res += mat4(-0.008678745478392,0.064711339771748,0.229940816760063,-0.124153681099415,-0.195702940225601,-0.111255027353764,-0.058677591383457,0.191976726055145,-0.026681993156672,0.254258751869202,-0.012000494636595,0.158510476350784,-0.034254271537066,0.034648112952709,0.086678564548492,-0.002400867640972) * MODEL10_texOff(vec2(-1,0));
res += mat4(-0.017836667597294,0.077662460505962,-0.097875356674194,0.013302272185683,-0.168347015976906,0.109624877572060,0.088364765048027,0.059872422367334,0.099431864917278,0.037938781082630,0.137984335422516,-0.123754166066647,-0.088566005229950,0.105144426226616,0.112132862210274,0.100307658314705) * MODEL10_texOff(vec2(-1,1));
res += mat4(0.136357381939888,0.101363286375999,-0.032740440219641,0.225515142083168,0.042679924517870,0.023430932313204,-0.204958066344261,0.148151338100433,-0.041626118123531,-0.025659063830972,-0.024146959185600,-0.150718808174133,0.000461779767647,0.118591070175171,0.111244298517704,-0.047290548682213) * MODEL10_texOff(vec2(0,-1));
res += mat4(0.066600389778614,0.144293174147606,0.088968366384506,-0.010481776669621,-0.002243437105790,-0.190376996994019,-0.304656088352203,0.315450906753540,-0.183827310800552,0.004075454548001,-0.082891143858433,0.035215292125940,0.010102810338140,-0.034397818148136,0.109931722283363,0.020994819700718) * MODEL10_texOff(vec2(0,0));
res += mat4(-0.038959015160799,0.062026500701904,-0.062545649707317,0.069750964641571,-0.180646494030952,0.081431634724140,0.161419063806534,-0.028745554387569,0.340426951646805,0.049421604722738,0.164728969335556,-0.039384439587593,0.066642716526985,-0.042914751917124,0.107797987759113,-0.192281544208527) * MODEL10_texOff(vec2(0,1));
res += mat4(0.040061779320240,0.256829679012299,0.068027809262276,-0.253974735736847,-0.151619553565979,0.034400094300508,0.020782129839063,0.119461297988892,-0.030406972393394,0.205647125840187,-0.094802834093571,-0.050754509866238,0.038682509213686,0.065814293920994,0.039011053740978,-0.116077080368996) * MODEL10_texOff(vec2(1,-1));
res += mat4(-0.067227773368359,0.065590120851994,0.162328481674194,-0.234334349632263,0.022765334695578,0.168910503387451,-0.057340078055859,0.060700882226229,0.248932272195816,0.014207666739821,0.000085522464360,-0.274777829647064,-0.113994948565960,0.122177340090275,0.130474060773849,0.009657547809184) * MODEL10_texOff(vec2(1,0));
res += mat4(0.117301091551781,0.024533573538065,0.076815113425255,0.100105598568916,-0.040539786219597,-0.021604051813483,0.061816371977329,0.180966943502426,0.175179660320282,-0.076964065432549,0.141503080725670,-0.064893849194050,0.088506497442722,-0.019541941583157,0.130766823887825,-0.011099190451205) * MODEL10_texOff(vec2(1,1));
res += mat4(-0.044286474585533,-0.193574920296669,0.004828612785786,-0.046240352094173,0.048695325851440,-0.006436767056584,-0.056762147694826,0.044850341975689,0.062021546065807,0.180158630013466,-0.019394561648369,0.015898194164038,0.084633931517601,0.050695098936558,-0.027228590101004,-0.146009236574173) * MODEL11_texOff(vec2(-1,-1));
res += mat4(0.121398001909256,0.053115185350180,-0.043717369437218,-0.019627269357443,-0.119878210127354,0.176132202148438,-0.113671958446503,0.163737595081329,0.003208309179172,-0.110279604792595,0.181719198822975,-0.057309441268444,0.192633748054504,0.020586811006069,-0.225494042038918,-0.217408865690231) * MODEL11_texOff(vec2(-1,0));
res += mat4(0.008460334502161,-0.085455991327763,0.007080007344484,-0.139381542801857,0.132652312517166,-0.052727874368429,0.061370510607958,0.009997526183724,0.027310855686665,0.228069320321083,-0.083460137248039,0.119605183601379,0.060606371611357,0.055708304047585,0.051263112574816,-0.212259262800217) * MODEL11_texOff(vec2(-1,1));
res += mat4(-0.091229334473610,-0.074072249233723,0.019562836736441,-0.218749582767487,0.043721698224545,-0.230323165655136,0.141813158988953,-0.025290178135037,0.065664596855640,0.144247978925705,-0.273951530456543,-0.080644324421883,0.144806578755379,-0.334617525339127,-0.167417973279953,-0.117877513170242) * MODEL11_texOff(vec2(0,-1));
res += mat4(-0.378881216049194,0.267217874526978,0.005045776721090,-0.357293486595154,-0.001380431698635,-0.058309517800808,0.371987819671631,-0.226808592677116,0.071540854871273,0.176839902997017,0.106982320547104,-0.082746490836143,0.148332089185715,-0.100511774420738,-0.113422930240631,-0.106378771364689) * MODEL11_texOff(vec2(0,0));
res += mat4(-0.488551229238510,0.076997838914394,0.137545898556709,-0.211799725890160,-0.041270177811384,0.137090235948563,-0.195979580283165,0.191635519266129,-0.016156094148755,0.114646814763546,0.048515919595957,0.030349073931575,0.018870776519179,0.123886004090309,-0.313681185245514,-0.003314522095025) * MODEL11_texOff(vec2(0,1));
res += mat4(-0.076116390526295,-0.024825183674693,-0.184691444039345,-0.053804326802492,0.119233995676041,-0.169872045516968,-0.173044234514236,0.216370329260826,0.056249968707561,-0.189498126506805,-0.209203809499741,-0.006306149531156,0.146186113357544,0.006532324478030,0.048174418509007,-0.225691616535187) * MODEL11_texOff(vec2(1,-1));
res += mat4(-0.162174746394157,0.052206847816706,0.022440435364842,0.117174230515957,0.100761763751507,-0.351742982864380,-0.508671641349792,0.120914079248905,0.144345477223396,0.143175438046455,0.098879612982273,-0.078521259129047,0.386347383260727,-0.179945409297943,0.035038556903601,-0.078228473663330) * MODEL11_texOff(vec2(1,0));
res += mat4(-0.093765519559383,-0.001246383530088,-0.050160083919764,-0.124396026134491,0.104851007461548,-0.013068295083940,0.126851305365562,0.171998530626297,0.054733160883188,0.040205352008343,0.082616038620472,-0.065669819712639,0.067714042961597,0.060664664953947,0.010113307274878,-0.058191031217575) * MODEL11_texOff(vec2(1,1));
res += mat4(-0.058945830911398,0.144853606820107,-0.152476415038109,-0.290093809366226,-0.091845750808716,-0.022189125418663,-0.136946871876717,-0.021838286891580,0.079767145216465,0.165811538696289,-0.033007718622684,-0.002346182009205,-0.093645811080933,-0.021973941475153,-0.008232793770730,0.010442052036524) * MODEL12_texOff(vec2(-1,-1));
res += mat4(-0.080310545861721,-0.015333506278694,-0.099726185202599,-0.017728000879288,0.098257794976234,0.050625231117010,0.068887196481228,0.015153937973082,-0.085047319531441,0.201777815818787,-0.155603840947151,0.207465246319771,-0.001520299119875,-0.176756814122200,0.109685987234116,-0.080012962222099) * MODEL12_texOff(vec2(-1,0));
res += mat4(0.051660198718309,-0.193192869424820,0.066549867391586,-0.368458598852158,0.118394650518894,0.175223812460899,-0.097652308642864,0.127173751592636,0.160348832607269,-0.114749446511269,0.125319004058838,-0.059442680329084,-0.047605387866497,-0.193106040358543,-0.114313744008541,0.078702010214329) * MODEL12_texOff(vec2(-1,1));
res += mat4(0.035856682807207,-0.128290995955467,0.126878306269646,-0.002742989920080,0.098239742219448,-0.162584736943245,-0.188655093312263,-0.081110164523125,0.087211459875107,-0.053325626999140,0.155271604657173,0.326369613409042,-0.098489433526993,0.141133591532707,-0.139892995357513,0.004120921716094) * MODEL12_texOff(vec2(0,-1));
res += mat4(-0.145206376910210,0.461311817169189,-0.133308529853821,-0.441288411617279,-0.012723342515528,-0.144776806235313,-0.274075597524643,0.155162692070007,-0.022169176489115,-0.087902881205082,-0.038728322833776,-0.034933317452669,-0.081290274858475,0.041757881641388,0.083602838218212,0.055128827691078) * MODEL12_texOff(vec2(0,0));
res += mat4(-0.028956988826394,0.233253702521324,0.018693432211876,-0.163507997989655,0.268794000148773,-0.289723902940750,0.175907179713249,0.047431435436010,-0.032850399613380,0.060494918376207,0.064105421304703,0.067196428775787,-0.266212403774261,0.092222265899181,-0.102576106786728,0.226145073771477) * MODEL12_texOff(vec2(0,1));
res += mat4(0.064636923372746,0.006474718917161,-0.049636214971542,0.011565936729312,-0.110122628509998,-0.144782155752182,0.079674884676933,0.165352001786232,-0.057746890932322,-0.001836978597566,0.073852062225342,0.038545962423086,-0.200096592307091,-0.083957612514496,-0.120599381625652,-0.002875506645069) * MODEL12_texOff(vec2(1,-1));
res += mat4(0.004434196278453,-0.150195568799973,-0.072969123721123,0.216092839837074,-0.013379821553826,0.011305755935609,-0.085085853934288,0.146423131227493,0.096388608217239,0.125074028968811,-0.006706561427563,0.089377291500568,-0.246649786829948,-0.228131219744682,0.161708116531372,-0.122854441404343) * MODEL12_texOff(vec2(1,0));
res += mat4(0.037234682589769,0.031329583376646,-0.030073577538133,0.106100372970104,0.481778591871262,-0.176092103123665,0.096891760826111,0.120967812836170,0.119095370173454,0.226731345057487,-0.008306416682899,0.192197129130363,-0.018370876088738,-0.011171860620379,-0.074675999581814,-0.080546170473099) * MODEL12_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(0.005980214569718,0.015162639319897,-0.064622715115547,-0.026336759328842) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 3.200 * > OUTPUT.h LUMA.h 3.200 * > *
//!COMPONENTS 4
//!BIND MODEL7
//!BIND MODEL8
//!BIND MODEL9
//!BIND MODEL10
//!BIND MODEL11
//!BIND MODEL12
//!SAVE MODEL3
//!DESC [AiUpscale_Medium_4x_Photo] mapping 3_3

vec4 hook()
{
vec4 res = vec4(0.083824165165424,-0.064836479723454,0.016268525272608,0.113167710602283);
res += mat4(-0.032829221338034,0.072768874466419,-0.077027954161167,0.254249066114426,0.061184104532003,-0.005593850743026,0.066359840333462,0.014229590073228,0.030226692557335,-0.085200414061546,-0.072888337075710,-0.039800904691219,0.044291254132986,0.077335655689240,-0.025211757048965,0.142900750041008) * MODEL7_texOff(vec2(-1,-1));
res += mat4(-0.018712325021625,-0.006807894445956,-0.074033066630363,0.317415654659271,0.143703892827034,0.157428994774818,-0.081617377698421,-0.236656025052071,-0.076222091913223,-0.204758033156395,0.053344573825598,-0.124153532087803,-0.029302746057510,0.087584517896175,0.042365740984678,0.162840217351913) * MODEL7_texOff(vec2(-1,0));
res += mat4(0.007269597146660,0.128159329295158,-0.058204811066389,0.217337936162949,0.068344324827194,0.060161232948303,-0.161383196711540,-0.098339550197124,-0.010657932609320,-0.005032332614064,-0.046016413718462,-0.088924571871758,-0.154868274927139,-0.046340301632881,0.121527679264545,0.065304778516293) * MODEL7_texOff(vec2(-1,1));
res += mat4(0.058583699166775,0.119210667908192,0.035674735903740,0.099007062613964,0.017453683540225,0.007328935433179,-0.019674463197589,0.082052707672119,0.077927142381668,-0.096908882260323,-0.011017562821507,0.075234785676003,-0.043314620852470,-0.002092726994306,-0.004828771110624,0.232845276594162) * MODEL7_texOff(vec2(0,-1));
res += mat4(-0.031741376966238,0.163056477904320,-0.009613648988307,-0.119845412671566,-0.087837710976601,0.109490655362606,-0.160864025354385,-0.174581423401833,0.012558977119625,0.075142286717892,-0.047594923526049,-0.032808050513268,0.213534548878670,0.116899162530899,0.141797080636024,-0.261137425899506) * MODEL7_texOff(vec2(0,0));
res += mat4(-0.012737125158310,0.130478575825691,0.091578073799610,-0.024556683376431,0.056820388883352,-0.152151614427567,-0.054127257317305,0.016377978026867,-0.046656496822834,-0.188693583011627,0.007011096458882,-0.030978724360466,0.021426772698760,0.254435896873474,0.090274080634117,0.106382787227631) * MODEL7_texOff(vec2(0,1));
res += mat4(-0.072466559708118,-0.007611986249685,0.088086821138859,0.005255991127342,0.171328261494637,0.112508848309517,-0.026998626068234,0.067181922495365,-0.036945667117834,-0.005532884038985,0.024841280654073,0.004447174258530,-0.069797709584236,-0.026770712807775,-0.152764394879341,0.049599815160036) * MODEL7_texOff(vec2(1,-1));
res += mat4(-0.014124075882137,-0.035731140524149,0.210271641612053,-0.044238440692425,-0.030528899282217,-0.032032120972872,-0.268916130065918,0.029123295098543,-0.005138815380633,-0.042607512325048,-0.071544453501701,-0.130286261439323,-0.149627745151520,0.159338042140007,0.323403745889664,0.215598955750465) * MODEL7_texOff(vec2(1,0));
res += mat4(0.024288212880492,0.066559493541718,0.124237127602100,0.017416568472981,0.153235122561455,0.078246347606182,-0.180641740560532,0.088044196367264,-0.013142338953912,0.004148453474045,-0.001973914215341,-0.127469986677170,-0.071426883339882,0.158239111304283,0.232322290539742,0.042127553373575) * MODEL7_texOff(vec2(1,1));
res += mat4(0.038016840815544,-0.151174739003181,-0.004205627366900,-0.080096334218979,0.058024462312460,0.114175871014595,-0.033019438385963,0.080370858311653,0.080266028642654,0.150083273649216,0.028625763952732,-0.079096294939518,-0.045196469873190,0.071529053151608,0.012388458475471,0.364572077989578) * MODEL8_texOff(vec2(-1,-1));
res += mat4(0.096055440604687,-0.107183456420898,0.010717445053160,-0.030100734904408,0.000374289811589,0.025652974843979,-0.006128576584160,0.216987803578377,0.043239407241344,-0.169154450297356,-0.079496659338474,-0.106991723179817,0.091654814779758,0.139951646327972,0.060017656534910,-0.127256155014038) * MODEL8_texOff(vec2(-1,0));
res += mat4(0.034275777637959,0.023709811270237,-0.033458128571510,-0.028060536831617,-0.014964256435633,-0.054725799709558,-0.097976006567478,0.101492144167423,-0.029731981456280,0.041639022529125,-0.103118807077408,-0.005679506808519,0.226229816675186,0.104352422058582,-0.028886202722788,-0.084416620433331) * MODEL8_texOff(vec2(-1,1));
res += mat4(0.061500221490860,-0.041888654232025,-0.022890966385603,-0.053442385047674,-0.205169081687927,0.079711027443409,0.007827012799680,0.072633661329746,0.040796432644129,-0.004883938003331,-0.066496320068836,0.057705998420715,-0.022556982934475,0.151016771793365,-0.033788062632084,0.106500327587128) * MODEL8_texOff(vec2(0,-1));
res += mat4(0.034945875406265,0.197526007890701,0.016490845009685,0.437110781669617,0.077690459787846,0.001090878038667,-0.003986449912190,0.151150286197662,0.099767491221428,-0.079834751784801,-0.300160139799118,-0.032330460846424,-0.149391368031502,0.056677252054214,0.001846419181675,-0.053073830902576) * MODEL8_texOff(vec2(0,0));
res += mat4(0.050352606922388,-0.110727377235889,0.010983280837536,0.011975616216660,-0.011180989444256,0.095864802598953,0.056494846940041,-0.041599515825510,0.152059093117714,-0.087035261094570,-0.215433895587921,0.003222044324502,0.005506854038686,-0.054522953927517,-0.029730044305325,0.095735378563404) * MODEL8_texOff(vec2(0,1));
res += mat4(0.015395437367260,0.011381019838154,0.048386268317699,0.041159112006426,-0.082434721291065,0.014938832260668,0.018358366563916,-0.101961679756641,0.078510597348213,-0.037111438810825,-0.010594961233437,-0.031602390110493,0.185233503580093,-0.024185199290514,0.024595435708761,0.047412406653166) * MODEL8_texOff(vec2(1,-1));
res += mat4(-0.013708391226828,-0.132696658372879,-0.370251357555389,-0.029733637347817,0.004763706587255,0.057064712047577,0.226803883910179,0.183985903859138,-0.040620494633913,0.035714995115995,0.209332078695297,-0.112708427011967,0.130261957645416,0.148048073053360,-0.104498274624348,-0.022519869729877) * MODEL8_texOff(vec2(1,0));
res += mat4(0.138337492942810,-0.035828333348036,-0.004289307165891,0.036772895604372,-0.069814972579479,-0.019389145076275,0.160983845591545,-0.150335282087326,0.212542757391930,-0.084850914776325,-0.078013956546783,0.118100918829441,-0.138854160904884,0.183171227574348,0.040997017174959,0.053380385041237) * MODEL8_texOff(vec2(1,1));
res += mat4(-0.006469528656453,0.450677156448364,0.129013761878014,-0.003638044232503,0.021609591320157,-0.108086004853249,-0.120461054146290,-0.107441753149033,0.125203773379326,0.018058510497212,-0.003512652823702,0.100763358175755,-0.002637143246830,0.063110128045082,-0.001479285070673,0.071148477494717) * MODEL9_texOff(vec2(-1,-1));
res += mat4(-0.084660775959492,0.549992144107819,-0.114781260490417,-0.014199063181877,-0.046448379755020,-0.096986442804337,-0.231625288724899,-0.128993883728981,-0.009378213435411,-0.025722665712237,0.111530475318432,0.354400455951691,0.095871612429619,-0.070314250886440,0.070034019649029,0.064601279795170) * MODEL9_texOff(vec2(-1,0));
res += mat4(-0.042324893176556,0.178241521120071,0.023981779813766,0.013484388589859,-0.055816359817982,0.170050352811813,-0.148070245981216,-0.110833942890167,-0.095010764896870,0.057810463011265,0.150770306587219,0.209377929568291,-0.039336729794741,-0.042561698704958,-0.059869568794966,0.036368850618601) * MODEL9_texOff(vec2(-1,1));
res += mat4(-0.009254305623472,0.051267150789499,0.124104239046574,0.196658864617348,-0.006096773780882,0.129159569740295,-0.051471166312695,0.081625811755657,-0.037993837147951,-0.117139860987663,-0.024277266114950,-0.006563371513039,-0.151150822639465,0.046984810382128,0.047766823321581,0.164090156555176) * MODEL9_texOff(vec2(0,-1));
res += mat4(0.276174008846283,-0.039012800902128,0.011096658185124,-0.182415604591370,0.197528228163719,-0.028204061090946,-0.343924641609192,-0.087767660617828,0.026466455310583,-0.290994107723236,-0.345408320426941,-0.349592000246048,-0.082153014838696,-0.077017396688461,-0.055161863565445,-0.502848446369171) * MODEL9_texOff(vec2(0,0));
res += mat4(-0.136265590786934,0.093463517725468,0.038328457623720,-0.077180720865726,-0.005643257871270,0.004116620868444,-0.047181390225887,-0.008715287782252,0.130688458681107,0.163208305835724,-0.005991278681904,-0.017106970772147,0.003540157573298,0.081435583531857,-0.070038311183453,-0.052564755082130) * MODEL9_texOff(vec2(0,1));
res += mat4(-0.218918666243553,-0.058567337691784,-0.237719669938087,-0.198424160480499,-0.142822474241257,-0.024027224630117,-0.006333644036204,-0.025013938546181,0.128171920776367,-0.269383132457733,-0.103549458086491,0.026180615648627,-0.021675949916244,0.069517083466053,0.171794846653938,-0.080831617116928) * MODEL9_texOff(vec2(1,-1));
res += mat4(0.204404845833778,0.329371809959412,0.123614422976971,-0.124907277524471,-0.007547408808023,-0.125085636973381,-0.112298145890236,0.046473659574986,-0.170401737093925,0.083871468901634,-0.150883033871651,0.109938427805901,-0.162939608097076,-0.027243178337812,0.554768681526184,0.141984760761261) * MODEL9_texOff(vec2(1,0));
res += mat4(0.033324427902699,0.367791831493378,-0.203911572694778,-0.084692612290382,0.079477980732918,-0.065243601799011,0.061025485396385,-0.082850955426693,-0.012757310643792,0.068884201347828,0.328285157680511,0.234823390841484,0.116476707160473,-0.011085938662291,0.300270944833755,-0.046346645802259) * MODEL9_texOff(vec2(1,1));
res += mat4(-0.087451130151749,-0.059115361422300,-0.020925717428327,-0.049625869840384,-0.032006565481424,0.106773823499680,0.044957827776670,0.126150041818619,-0.284445166587830,0.089620672166348,0.074298173189163,-0.001162618165836,-0.343599975109100,0.039533846080303,0.018401598557830,-0.077394895255566) * MODEL10_texOff(vec2(-1,-1));
res += mat4(-0.145219013094902,0.029155673459172,-0.126878097653389,-0.146567165851593,-0.024423876777291,0.109598733484745,-0.041860543191433,0.138754203915596,-0.218593329191208,0.285396754741669,-0.080384276807308,-0.163523584604263,-0.338342756032944,-0.002411200897768,-0.035628531128168,-0.206490710377693) * MODEL10_texOff(vec2(-1,0));
res += mat4(-0.151701137423515,0.085477061569691,0.050124786794186,-0.165361121296883,-0.010109793394804,-0.072373017668724,-0.016503814607859,-0.052072245627642,-0.149183884263039,-0.019983237609267,-0.140297561883926,-0.029072346165776,-0.304193943738937,0.107670307159424,0.020984595641494,-0.145632117986679) * MODEL10_texOff(vec2(-1,1));
res += mat4(-0.046423688530922,0.073630608618259,0.062768749892712,-0.133844003081322,0.002117708325386,-0.024655388668180,0.036615442484617,0.003623775206506,-0.211752369999886,0.152988255023956,0.066947482526302,0.127277284860611,-0.269102066755295,0.036311566829681,0.056194022297859,-0.045227043330669) * MODEL10_texOff(vec2(0,-1));
res += mat4(-0.307911098003387,0.114089034497738,-0.124994114041328,-0.105126149952412,-0.035403452813625,-0.038266193121672,0.106598705053329,0.013825397007167,-0.234852373600006,-0.119031667709351,-0.279997557401657,0.136601164937019,-1.133817434310913,0.034818973392248,0.018482701852918,0.014454985968769) * MODEL10_texOff(vec2(0,0));
res += mat4(-0.027358295395970,-0.015259634703398,0.055528420954943,-0.116770692169666,0.015846313908696,0.034464992582798,0.030991422012448,-0.048917021602392,-0.136393055319786,0.147543713450432,-0.168318688869476,0.098046854138374,-0.308347463607788,-0.106077946722507,0.146014034748077,0.072392433881760) * MODEL10_texOff(vec2(0,1));
res += mat4(-0.209701031446457,-0.029728837311268,-0.174612656235695,-0.261546105146408,0.075151823461056,-0.148765459656715,-0.065405741333961,-0.109054177999496,-0.208401501178741,0.009147599339485,0.025033084675670,-0.011367794126272,-0.175587624311447,0.073604479432106,0.063157610595226,0.040412645787001) * MODEL10_texOff(vec2(1,-1));
res += mat4(-0.198004499077797,-0.006105653010309,-0.949189960956573,0.055380742996931,0.041883565485477,-0.030362868681550,-0.131345704197884,-0.201098576188087,-0.120167814195156,-0.047500357031822,-0.113836988806725,0.207470715045929,-0.280580878257751,0.046620700508356,-0.105050504207611,0.006328275427222) * MODEL10_texOff(vec2(1,0));
res += mat4(-0.132757991552353,0.061822656542063,-0.071540951728821,-0.077913567423820,0.054401587694883,0.232492223381996,-0.042063411325216,-0.060700934380293,-0.038880370557308,0.247425392270088,-0.082627497613430,0.128216475248337,-0.370902478694916,-0.019338831305504,0.115235187113285,0.107892528176308) * MODEL10_texOff(vec2(1,1));
res += mat4(0.017479775473475,0.209533497691154,0.151284381747246,-0.019690748304129,0.131455913186073,0.054705590009689,0.091375894844532,0.002709323540330,0.153733104467392,-0.066947720944881,-0.026728410273790,-0.053915530443192,-0.142063841223717,0.105127289891243,-0.099629215896130,0.073930330574512) * MODEL11_texOff(vec2(-1,-1));
res += mat4(0.053808283060789,-0.116158224642277,0.001790763926692,0.034269876778126,-0.039125133305788,-0.011385379359126,0.122472397983074,0.251217663288116,0.241483181715012,0.539819419384003,0.161098062992096,-0.167215675115585,-0.144707798957825,-0.001133211422712,-0.003308351384476,0.215615868568420) * MODEL11_texOff(vec2(-1,0));
res += mat4(0.051326695829630,0.036447111517191,0.041733171790838,-0.078120082616806,-0.099078208208084,0.005477837752551,0.090347707271576,-0.085641883313656,0.164896652102470,0.292146950960159,0.094351872801781,-0.166106462478638,-0.114156760275364,-0.001584270736203,-0.015206548385322,-0.007172238081694) * MODEL11_texOff(vec2(-1,1));
res += mat4(-0.170037105679512,0.091164290904999,0.123237028717995,0.075937382876873,0.044879678636789,0.119244419038296,0.138917297124863,0.104480423033237,0.011354148387909,0.074220657348633,0.030003132298589,0.015729954466224,0.090818114578724,-0.052699454128742,0.000698197050951,0.202969714999199) * MODEL11_texOff(vec2(0,-1));
res += mat4(-0.014811600558460,-0.207794681191444,-0.032466497272253,-0.226104527711868,0.124031804502010,0.037294443696737,-0.037567734718323,-0.377129971981049,0.024834392592311,0.234907522797585,0.222565427422523,-0.253899067640305,-0.012108555994928,0.031405258923769,-0.052624296396971,0.316680818796158) * MODEL11_texOff(vec2(0,0));
res += mat4(-0.021836128085852,-0.075533121824265,-0.011813123710454,-0.143833413720131,0.052249681204557,0.042460072785616,-0.063656739890575,0.082136407494545,0.213928937911987,0.147115662693977,0.153499469161034,0.005835125222802,-0.075837202370167,0.018957244232297,0.129674464464188,0.138666495680809) * MODEL11_texOff(vec2(0,1));
res += mat4(-0.125495910644531,-0.184805706143379,-0.157640889286995,-0.111391425132751,0.089908845722675,0.020977111533284,0.049384191632271,-0.291213929653168,0.056214656680822,0.172887474298477,0.071513555943966,-0.146405786275864,-0.031218079850078,0.162114024162292,0.321596294641495,0.053047660738230) * MODEL11_texOff(vec2(1,-1));
res += mat4(0.057491078972816,0.076941944658756,0.194801464676857,-0.007244289387017,0.220605686306953,0.329393863677979,-0.120437137782574,0.214890122413635,0.047635629773140,0.181846901774406,0.362751305103302,-0.275628536939621,-0.075875371694565,-0.103797182440758,0.400021374225616,0.127226397395134) * MODEL11_texOff(vec2(1,0));
res += mat4(-0.055716477334499,-0.112402960658073,0.044529374688864,-0.068313516676426,0.083185240626335,-0.223938167095184,-0.167273998260498,-0.059569943696260,-0.012189205735922,-0.199185654520988,0.279912739992142,-0.028069896623492,-0.004486310761422,-0.149793371558189,0.238895624876022,0.063275754451752) * MODEL11_texOff(vec2(1,1));
res += mat4(0.118672631680965,-0.068908728659153,-0.085956871509552,-0.286820083856583,0.179703369736671,-0.120802022516727,0.004609909374267,0.033611018210649,-0.169801056385040,0.291095584630966,-0.063574321568012,-0.151190087199211,0.032218195497990,-0.250076949596405,-0.001570014632307,0.022412842139602) * MODEL12_texOff(vec2(-1,-1));
res += mat4(0.184779360890388,-0.379739165306091,0.089043430984020,0.029193822294474,0.135444000363350,0.147900134325027,0.089012771844864,0.154414221644402,-0.083222515881062,0.074666082859039,0.208918109536171,0.242838338017464,0.058407455682755,-0.346513003110886,-0.090796627104282,-0.235247820615768) * MODEL12_texOff(vec2(-1,0));
res += mat4(0.055848371237516,0.025056911632419,-0.040034167468548,-0.052896082401276,0.063978455960751,0.030665766447783,0.084779143333435,0.166826263070107,-0.334026843309402,0.040695626288652,0.028239032253623,-0.012564517557621,0.028324246406555,-0.447347760200500,-0.129947021603584,-0.037834756076336) * MODEL12_texOff(vec2(-1,1));
res += mat4(0.041995503008366,0.179204985499382,0.108344368636608,0.035588093101978,0.190001234412193,0.255515396595001,0.009958067908883,0.056732937693596,-0.087142728269100,0.250029563903809,0.088800385594368,0.184182420372963,0.151622802019119,-0.197703555226326,-0.016018226742744,-0.012266750447452) * MODEL12_texOff(vec2(0,-1));
res += mat4(0.183920040726662,-0.267468929290771,-0.060370571911335,0.018290756270289,0.088347822427750,-0.021678278222680,0.016363222151995,0.126527383923531,-0.361773669719696,0.030562728643417,0.083818532526493,-0.066632300615311,0.127809733152390,-0.270646780729294,0.058254003524780,-0.025420043617487) * MODEL12_texOff(vec2(0,0));
res += mat4(-0.005010122898966,-0.053579133003950,-0.175059780478477,0.017889950424433,0.108140558004379,-0.209798991680145,0.022459272295237,-0.121019519865513,-0.091220729053020,0.363622069358826,-0.170105233788490,0.008121477440000,0.127370148897171,-0.462872654199600,-0.189852610230446,0.047814384102821) * MODEL12_texOff(vec2(0,1));
res += mat4(-0.074136123061180,0.038769800215960,0.177169904112816,-0.143112257122993,0.274317324161530,-0.145417720079422,-0.083694137632847,-0.078392319381237,-0.395794421434402,0.093566656112671,0.079565830528736,-0.118088729679585,0.115669019520283,-0.177368670701981,0.085916534066200,0.065831139683723) * MODEL12_texOff(vec2(1,-1));
res += mat4(-0.006196225527674,-0.096018441021442,0.218650668859482,0.054201118648052,0.137741655111313,0.005270024295896,0.050992008298635,-0.029013477265835,-0.150129139423370,0.108247324824333,0.206861615180969,-0.246772825717926,0.049283877015114,-0.131216168403625,0.060976624488831,0.078943908214569) * MODEL12_texOff(vec2(1,0));
res += mat4(-0.079681247472763,0.014092785306275,0.072495944797993,-0.001619708607905,-0.110692955553532,0.390316486358643,0.115217454731464,-0.057444859296083,-0.295854121446609,0.014421900734305,-0.043760877102613,-0.283291816711426,0.243191495537758,-0.382861554622650,-0.103568233549595,0.007761371321976) * MODEL12_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(-0.097973495721817,-0.061313021928072,-0.067864485085011,0.478478670120239) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 3.200 * > OUTPUT.h LUMA.h 3.200 * > *
//!COMPONENTS 4
//!BIND MODEL7
//!BIND MODEL8
//!BIND MODEL9
//!BIND MODEL10
//!BIND MODEL11
//!BIND MODEL12
//!SAVE MODEL4
//!DESC [AiUpscale_Medium_4x_Photo] mapping 3_4

vec4 hook()
{
vec4 res = vec4(-0.090003959834576,-0.204847633838654,-0.132609501481056,0.040205053985119);
res += mat4(0.170346453785896,-0.174073562026024,0.027009077370167,0.020483953878284,-0.080459989607334,-0.104778468608856,0.093117408454418,-0.089292503893375,0.106092467904091,0.022688876837492,-0.043193459510803,0.094119288027287,0.049019251018763,-0.081602849066257,0.084949411451817,0.016725059598684) * MODEL7_texOff(vec2(-1,-1));
res += mat4(0.225070253014565,-0.142211571335793,-0.299762487411499,-0.161246478557587,0.065109878778458,0.085142411291599,0.106124691665173,0.213922858238220,-0.045345690101385,-0.174329251050949,-0.061611026525497,-0.122187472879887,-0.114585213363171,-0.193715482950211,0.229916781187057,-0.114953316748142) * MODEL7_texOff(vec2(-1,0));
res += mat4(0.137641012668610,-0.056676540523767,-0.251356184482574,0.007259841077030,-0.022137267515063,-0.225746750831604,0.148825228214264,-0.024263776838779,-0.063676565885544,-0.091059140861034,-0.134017676115036,0.165887281298637,0.104602798819542,-0.145753502845764,0.054465558379889,-0.072938725352287) * MODEL7_texOff(vec2(-1,1));
res += mat4(0.305253326892853,-0.032127026468515,-0.311195194721222,-0.021874159574509,0.025457506999373,-0.030245354399085,0.204710826277733,0.139096900820732,-0.078608281910419,-0.059064015746117,0.061036888509989,0.084973409771919,-0.069655746221542,-0.232681527733803,0.229316517710686,-0.059933163225651) * MODEL7_texOff(vec2(0,-1));
res += mat4(0.120013318955898,-0.110162205994129,0.131547287106514,-0.012687952257693,-0.086887739598751,-0.035248026251793,0.164452537894249,0.179101645946503,-0.491450250148773,0.060770373791456,0.199061572551727,0.121984153985977,-0.087584301829338,0.242467135190964,-0.002057221950963,-0.036607567220926) * MODEL7_texOff(vec2(0,0));
res += mat4(0.267456561326981,-0.053370725363493,-0.062807440757751,-0.042037710547447,-0.049451146274805,0.076978184282780,-0.108170241117477,0.125933259725571,-0.160174995660782,-0.582915544509888,-0.200760453939438,-0.116645209491253,0.201105758547783,0.228953152894974,0.005169141571969,-0.052374064922333) * MODEL7_texOff(vec2(0,1));
res += mat4(0.128351345658302,-0.242378473281860,-0.112933166325092,0.024709869176149,0.069885060191154,-0.012877606786788,0.026108508929610,0.007527672220021,0.118578828871250,-0.029613601043820,-0.020990492776036,-0.062469214200974,-0.050371821969748,0.035519912838936,-0.050714377313852,-0.064631313085556) * MODEL7_texOff(vec2(1,-1));
res += mat4(-0.048752870410681,-0.051847260445356,-0.025206031277776,-0.085089154541492,0.097617752850056,-0.043145038187504,0.089431352913380,0.056646067649126,0.135756328701973,0.039426602423191,-0.119427770376205,0.008355365134776,0.032038372009993,0.030065912753344,-0.178106248378754,-0.087875977158546) * MODEL7_texOff(vec2(1,0));
res += mat4(0.089073978364468,-0.117120638489723,0.115123488008976,0.019232882186770,0.182415753602982,-0.016864631325006,-0.027932949364185,0.128366053104401,-0.097583711147308,-0.235884711146355,0.077055163681507,0.016712149605155,0.010296603664756,-0.002178845927119,-0.051976066082716,-0.065062344074249) * MODEL7_texOff(vec2(1,1));
res += mat4(-0.188436105847359,0.083962924778461,0.158640280365944,-0.018487250432372,-0.108128197491169,0.182607024908066,0.093250729143620,0.089215278625488,0.074355348944664,-0.084260493516922,-0.037716317921877,0.046845450997353,0.186695426702499,0.290397256612778,0.100657902657986,-0.309195399284363) * MODEL8_texOff(vec2(-1,-1));
res += mat4(0.098566778004169,-0.024851709604263,-0.051109261810780,0.054216794669628,-0.047702439129353,0.177731543779373,0.180889397859573,-0.216195479035378,0.004964501131326,0.035674341022968,0.257361531257629,-0.010175911709666,0.138671338558197,0.242668092250824,-0.086331874132156,0.018542051315308) * MODEL8_texOff(vec2(-1,0));
res += mat4(-0.001321544055827,0.048872247338295,-0.066353663802147,-0.029524190351367,-0.149578928947449,0.118715412914753,-0.052356373518705,-0.014503672719002,0.073761977255344,0.004567769356072,0.038343135267496,0.170489117503166,0.346833705902100,0.171454310417175,-0.009214148856699,-0.137510612607002) * MODEL8_texOff(vec2(-1,1));
res += mat4(0.107203751802444,0.099637627601624,-0.145686775445938,0.247173294425011,-0.117737717926502,-0.113976709544659,-0.041279211640358,-0.218165799975395,0.038967672735453,-0.249290317296982,0.081430047750473,-0.241192653775215,0.159678742289543,0.190780758857727,-0.005127088632435,-0.350788474082947) * MODEL8_texOff(vec2(0,-1));
res += mat4(0.382783710956573,-0.030015738680959,-0.414645820856094,-0.445662260055542,0.043856054544449,0.324396431446075,-0.606445193290710,-0.437376648187637,-0.089178480207920,0.417709231376648,-0.626396358013153,-0.366955399513245,0.167620778083801,0.109148107469082,0.029064610600471,-0.056756421923637) * MODEL8_texOff(vec2(0,0));
res += mat4(-0.040866073220968,0.114633172750473,0.075974836945534,-0.121990643441677,0.048141006380320,0.351610243320465,-0.082635544240475,0.107736125588417,-0.044335532933474,0.306964248418808,-0.043093457818031,0.225157976150513,-0.063588172197342,0.027902210131288,0.020665574818850,-0.137414649128914) * MODEL8_texOff(vec2(0,1));
res += mat4(-0.157013103365898,-0.061110239475965,0.217223644256592,-0.002265064511448,-0.016118876636028,0.018995504826307,0.070077858865261,-0.032571770250797,0.115266032516956,-0.101839676499367,-0.085523769259453,-0.092377245426178,0.057810049504042,0.054788447916508,0.072728022933006,-0.172221794724464) * MODEL8_texOff(vec2(1,-1));
res += mat4(0.007946468889713,-0.278256207704544,0.087598800659180,-0.133167415857315,0.048949077725410,0.149757623672485,-0.047610517591238,-0.055905893445015,0.070253446698189,0.046698316931725,0.244528457522392,0.339843750000000,0.169381707906723,-0.035750426352024,-0.107143089175224,0.044811084866524) * MODEL8_texOff(vec2(1,0));
res += mat4(-0.023144260048866,-0.149902790784836,-0.012461815960705,-0.083844058215618,-0.039700247347355,0.393345713615417,0.129692763090134,0.081138096749783,-0.091978810727596,-0.131803274154663,-0.085199221968651,-0.241323545575142,0.067472003400326,0.054947786033154,0.002486698096618,0.047668013721704) * MODEL8_texOff(vec2(1,1));
res += mat4(-0.079153969883919,-0.134054824709892,0.184622213244438,-0.224624544382095,0.052542738616467,0.040770784020424,-0.192307025194168,-0.001529246801510,-0.081146858632565,-0.111847899854183,0.086840942502022,0.022154772654176,0.014516107738018,0.066193826496601,0.030925896018744,-0.061012588441372) * MODEL9_texOff(vec2(-1,-1));
res += mat4(0.092458151280880,0.045969285070896,-0.190082192420959,0.131398171186447,0.019310144707561,-0.046101979911327,0.084268316626549,-0.139396280050278,0.015181541442871,-0.004980777390301,0.197851449251175,-0.075924582779408,-0.165414810180664,-0.040699027478695,0.037282664328814,-0.164603009819984) * MODEL9_texOff(vec2(-1,0));
res += mat4(0.018425509333611,-0.126598462462425,0.033711418509483,-0.208653599023819,0.112912833690643,0.257439970970154,-0.132124170660973,0.155337840318680,-0.196545988321304,0.085445143282413,0.014770932495594,-0.253951638936996,0.021247213706374,-0.043990902602673,-0.071291871368885,0.032910317182541) * MODEL9_texOff(vec2(-1,1));
res += mat4(0.070184186100960,-0.196574449539185,0.098502792418003,-0.293983221054077,0.138031303882599,0.034120459109545,0.095325499773026,-0.062383439391851,0.007940424606204,-0.081838831305504,0.112423822283745,-0.030210983008146,0.152777567505836,-0.023165520280600,-0.037513218820095,-0.065292455255985) * MODEL9_texOff(vec2(0,-1));
res += mat4(0.117638871073723,0.290003061294556,-0.012026128359139,0.415401667356491,-0.054265830665827,0.017073612660170,0.148762747645378,-0.058543242514133,-0.165521070361137,0.105473026633263,-0.021035617217422,0.422993153333664,-0.071489766240120,-0.212081670761108,-0.003807418281212,0.358816534280777) * MODEL9_texOff(vec2(0,0));
res += mat4(-0.158550471067429,-0.094859272241592,0.108388297259808,-0.265622138977051,0.176675796508789,-0.012084527872503,0.091801881790161,0.189866438508034,-0.035066958516836,0.031882990151644,0.014576066285372,-0.020105704665184,0.158887922763824,0.224035531282425,-0.043744727969170,0.163102701306343) * MODEL9_texOff(vec2(0,1));
res += mat4(-0.043828953057528,-0.037286188453436,0.016874037683010,-0.215316683053970,-0.039180301129818,0.059943322092295,-0.076843738555908,-0.093910217285156,0.038968652486801,0.022541765123606,-0.186131909489632,0.027505459263921,0.132959052920341,-0.069260902702808,0.010093851014972,-0.103157415986061) * MODEL9_texOff(vec2(1,-1));
res += mat4(-0.111468620598316,-0.044550038874149,0.000340792845236,0.127818986773491,0.126019626855850,-0.058388281613588,-0.078806579113007,-0.058745101094246,-0.148230791091919,-0.000888672133442,-0.160364583134651,-0.021109083667397,0.081979170441628,-0.247619226574898,-0.032292570918798,0.012208082713187) * MODEL9_texOff(vec2(1,0));
res += mat4(-0.250963270664215,0.145034402608871,-0.155203104019165,-0.369829207658768,-0.040132567286491,0.133012965321541,0.083326704800129,0.107635900378227,0.070966742932796,0.085437700152397,-0.137645542621613,0.146333590149879,0.040672846138477,-0.100751005113125,0.121546186506748,0.001877713832073) * MODEL9_texOff(vec2(1,1));
res += mat4(0.073937416076660,-0.147342100739479,-0.050930030643940,-0.066731214523315,0.023317812010646,-0.148876354098320,0.043451253324747,-0.029863856732845,0.096941284835339,0.004559767898172,0.141101717948914,-0.088091120123863,-0.009420076385140,-0.100451134145260,-0.154765546321869,-0.086278289556503) * MODEL10_texOff(vec2(-1,-1));
res += mat4(0.111817628145218,-0.073881298303604,-0.016700578853488,0.170252665877342,0.205460295081139,-0.393960475921631,-0.234764873981476,-0.043271422386169,-0.004275860730559,-0.189708039164543,0.198079511523247,0.186778247356415,0.138542324304581,-0.084505066275597,-0.279306083917618,0.004426632542163) * MODEL10_texOff(vec2(-1,0));
res += mat4(0.116340793669224,-0.059823639690876,0.003023227211088,-0.067155174911022,-0.297032088041306,-0.290857315063477,0.113953210413456,-0.020814651623368,0.119922265410423,0.032095666974783,-0.000578434555791,-0.160822406411171,0.082389138638973,-0.143757298588753,-0.111911892890930,-0.135608136653900) * MODEL10_texOff(vec2(-1,1));
res += mat4(0.070691987872124,-0.028480006381869,0.177566438913345,-0.182343646883965,0.123995125293732,-0.184359237551689,-0.040928196161985,0.035611432045698,0.097050778567791,0.038107197731733,0.032653778791428,-0.061174545437098,0.042043413966894,0.031936347484589,-0.099935173988342,-0.064013637602329) * MODEL10_texOff(vec2(0,-1));
res += mat4(0.228464707732201,0.001760574406944,0.270065784454346,0.017477536574006,0.218243539333344,-0.054955303668976,-0.010392558760941,-0.407636821269989,0.232180461287498,0.057102501392365,-0.193775415420532,-0.215753301978111,-0.071449667215347,-0.089963465929031,0.047729309648275,-0.096083931624889) * MODEL10_texOff(vec2(0,0));
res += mat4(0.009996497072279,-0.066174760460854,-0.033337160944939,0.005457976832986,-0.243699938058853,-0.186892837285995,0.085596099495888,-0.046343881636858,0.049691937863827,-0.070166282355785,-0.082407340407372,0.041882868856192,-0.132541075348854,0.040941402316093,-0.142321854829788,-0.139786764979362) * MODEL10_texOff(vec2(0,1));
res += mat4(0.088798917829990,-0.164122402667999,0.000110415610834,0.087377451360226,0.027292311191559,-0.027311559766531,0.055999934673309,0.030976871028543,0.023296391591430,0.092912577092648,-0.090675771236420,-0.035509239882231,-0.009885866194963,-0.059009134769440,-0.145340397953987,-0.068527773022652) * MODEL10_texOff(vec2(1,-1));
res += mat4(-0.044453218579292,-0.407217055559158,0.174256175756454,-0.071579650044441,0.037387188524008,-0.141741603612900,0.068866558372974,0.108714789152145,0.081118375062943,-0.001690198900178,-0.072571001946926,-0.079014360904694,0.006820578128099,0.018681772053242,-0.099473156034946,-0.054114699363708) * MODEL10_texOff(vec2(1,0));
res += mat4(0.120332263410091,-0.000227913653362,-0.056892313063145,0.092652164399624,0.035490084439516,0.062532812356949,-0.023150756955147,0.120841607451439,0.106363616883755,0.001886691781692,0.050742734223604,0.055143650621176,0.055837549269199,0.003408403368667,-0.142299026250839,-0.015984300523996) * MODEL10_texOff(vec2(1,1));
res += mat4(-0.021120637655258,0.034117873758078,-0.078585453331470,0.038898270577192,-0.125452846288681,-0.049743842333555,0.057325746864080,0.009192404337227,0.040389571338892,0.100745834410191,-0.161036700010300,0.057624749839306,-0.056444983929396,0.046032130718231,0.050638187676668,0.019187685102224) * MODEL11_texOff(vec2(-1,-1));
res += mat4(-0.376624435186386,0.133291706442833,-0.276632606983185,0.116704791784286,-0.157723382115364,-0.008412929251790,0.226291924715042,-0.094919696450233,0.099806547164917,-0.000310088071274,-0.149973839521408,0.194014593958855,0.119291022419930,0.234317690134048,-0.010344880633056,-0.073036059737206) * MODEL11_texOff(vec2(-1,0));
res += mat4(-0.138471260666847,0.081902556121349,-0.033848114311695,0.042434189468622,-0.047789718955755,-0.013120132498443,-0.031602427363396,-0.006073910742998,0.022309027612209,0.189065843820572,-0.056838825345039,-0.023859873414040,0.069101423025131,0.270650118589401,0.057636737823486,0.214131385087967) * MODEL11_texOff(vec2(-1,1));
res += mat4(0.046086817979813,-0.000454143446404,0.059334717690945,-0.103850148618221,0.114654645323753,0.067086942493916,-0.050595704466105,0.041064970195293,0.152576744556427,0.236704751849174,-0.190816640853882,-0.101837970316410,0.070339083671570,0.277860701084137,-0.012187978252769,-0.113942243158817) * MODEL11_texOff(vec2(0,-1));
res += mat4(-0.337907224893570,0.227478906512260,0.038022331893444,0.041720345616341,0.102810002863407,0.030474293977022,0.067479386925697,0.339850783348083,0.092597521841526,0.168558925390244,-0.186836808919907,0.239757061004639,0.261766552925110,-0.027573382481933,-0.009448837488890,-0.061354354023933) * MODEL11_texOff(vec2(0,0));
res += mat4(-0.205581441521645,-0.331767797470093,0.067248716950417,-0.004360688850284,0.044877115637064,-0.055337045341730,-0.041833072900772,0.023342352360487,-0.177751898765564,0.083784013986588,0.102009326219559,-0.274493426084518,0.194232895970345,0.242581605911255,-0.089667312800884,0.090570352971554) * MODEL11_texOff(vec2(0,1));
res += mat4(0.000768099795096,-0.028199182823300,0.043991625308990,-0.147666379809380,-0.108298599720001,-0.130555570125580,-0.091651789844036,-0.101693242788315,0.098263315856457,-0.058489400893450,0.169766530394554,-0.014884727075696,-0.037939280271530,0.247486248612404,0.088272042572498,0.033835429698229) * MODEL11_texOff(vec2(1,-1));
res += mat4(-0.071663193404675,0.367900133132935,0.031129462644458,-0.036891754716635,0.116786189377308,-0.114761039614677,-0.304941475391388,-0.443622678518295,0.010052945464849,-0.026414005085826,0.201886504888535,0.287163585424423,-0.044506467878819,0.392608761787415,0.133209407329559,0.037541881203651) * MODEL11_texOff(vec2(1,0));
res += mat4(0.087676323950291,0.077320784330368,-0.008137651719153,0.047191947698593,-0.220408245921135,-0.155619069933891,-0.140549421310425,-0.108447417616844,-0.158771380782127,0.104812979698181,0.113342069089413,-0.106068655848503,-0.163587301969528,0.331623494625092,0.247033014893532,0.041298359632492) * MODEL11_texOff(vec2(1,1));
res += mat4(0.086198732256889,0.132660239934921,-0.119506508111954,0.368884414434433,0.122928865253925,-0.007346198894083,0.079153552651405,0.024829376488924,0.223472088575363,0.109363228082657,-0.178818225860596,0.034669794142246,-0.114839211106300,0.036654494702816,0.023505464196205,-0.052546165883541) * MODEL12_texOff(vec2(-1,-1));
res += mat4(-0.088078893721104,-0.103841125965118,0.279176801443100,-0.132137104868889,0.237674161791801,0.033760186284781,0.095181070268154,-0.091192848980427,-0.108595043420792,0.001850935164839,-0.001133774989285,-0.268158316612244,-0.225340306758881,-0.028991768136621,-0.008957908488810,0.058441732078791) * MODEL12_texOff(vec2(-1,0));
res += mat4(-0.402759104967117,0.167064264416695,0.080868825316429,0.048460666090250,0.192139044404030,0.051359906792641,0.026694808155298,-0.191792652010918,0.147733569145203,0.176769018173218,-0.190371379256248,-0.042490776628256,-0.151008233428001,-0.043235477060080,0.063413389027119,0.230139449238777) * MODEL12_texOff(vec2(-1,1));
res += mat4(0.023570343852043,0.000158374357852,0.066409125924110,0.063247516751289,0.037382483482361,0.100345730781555,0.118979670107365,0.054523218423128,-0.063143074512482,0.058113139122725,-0.014079486951232,-0.068624682724476,-0.071106418967247,0.035175818949938,0.095466315746307,0.016796598210931) * MODEL12_texOff(vec2(0,-1));
res += mat4(-0.134326428174973,0.006795933470130,-0.006534528452903,0.020423473790288,0.548463344573975,-0.195864841341972,-0.165876597166061,-0.211123421788216,0.012506633065641,0.089719451963902,-0.036843661218882,0.023488273844123,-0.355899065732956,-0.208577156066895,0.136034205555916,0.039475958794355) * MODEL12_texOff(vec2(0,0));
res += mat4(-0.204059645533562,-0.094928264617920,-0.063312821090221,0.170538768172264,-0.214670002460480,0.021078895777464,0.007210540585220,-0.401465624570847,0.179778933525085,0.108313634991646,0.063569948077202,0.108376719057560,-0.104093827307224,-0.036399498581886,0.091087147593498,0.159775853157043) * MODEL12_texOff(vec2(0,1));
res += mat4(0.136568292975426,-0.024012325331569,0.040577415376902,0.079057149589062,0.006261485163122,-0.147331029176712,-0.009065850637853,0.021570680662990,0.055559992790222,-0.049868818372488,0.016104690730572,-0.119233943521976,0.017694685608149,0.070708848536015,0.041564472019672,0.127719894051552) * MODEL12_texOff(vec2(1,-1));
res += mat4(-0.002638788893819,0.168008327484131,0.042173445224762,0.253074765205383,0.021596506237984,-0.134061858057976,0.123650208115578,-0.151130318641663,0.185910657048225,-0.065422117710114,0.031682379543781,-0.034950431436300,-0.134765535593033,-0.146921232342720,0.197855353355408,0.017410153523088) * MODEL12_texOff(vec2(1,0));
res += mat4(-0.182444959878922,0.074762642383575,0.080413639545441,0.019922407343984,0.144530937075615,-0.005264284089208,0.009700883179903,0.062466584146023,0.043231088668108,-0.039820533245802,-0.030613111332059,-0.348191231489182,-0.006602148059756,-0.050108384341002,0.109328150749207,-0.069239430129528) * MODEL12_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(0.018779490143061,-0.039579980075359,0.007334117311984,-0.114286005496979) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 3.200 * > OUTPUT.h LUMA.h 3.200 * > *
//!COMPONENTS 4
//!BIND MODEL7
//!BIND MODEL8
//!BIND MODEL9
//!BIND MODEL10
//!BIND MODEL11
//!BIND MODEL12
//!SAVE MODEL5
//!DESC [AiUpscale_Medium_4x_Photo] mapping 3_5

vec4 hook()
{
vec4 res = vec4(-0.169700041413307,-0.086583152413368,-0.012887466698885,-0.174509793519974);
res += mat4(0.130227342247963,-0.095582798123360,0.214671820402145,0.025619463995099,0.042029812932014,0.105172753334045,-0.216554492712021,-0.321735709905624,-0.053412977606058,0.009050697088242,0.079460114240646,-0.071884706616402,-0.034149430692196,-0.093644306063652,-0.006875240243971,0.109914980828762) * MODEL7_texOff(vec2(-1,-1));
res += mat4(0.090104252099991,-0.196576237678528,0.166960135102272,-0.157920658588409,0.077958606183529,0.085522376000881,-0.036773115396500,-0.086802385747433,0.095143966376781,-0.007372058462352,-0.067182868719101,-0.099611073732376,0.019921977072954,-0.389436900615692,0.119154646992683,-0.199029773473740) * MODEL7_texOff(vec2(-1,0));
res += mat4(0.096867807209492,-0.120624639093876,-0.035510055720806,-0.057841051369905,0.104759484529495,0.241552710533142,0.045438043773174,-0.031444977968931,0.025492196902633,0.016119765117764,0.057245019823313,0.179542973637581,0.031874194741249,-0.044903066009283,0.065470807254314,-0.030043905600905) * MODEL7_texOff(vec2(-1,1));
res += mat4(-0.208323255181313,-0.236770614981651,0.580383181571960,-0.015879165381193,0.099832870066166,0.095949001610279,-0.148771360516548,-0.191675484180450,-0.035310097038746,0.017886143177748,-0.145889908075333,-0.061746463179588,0.018928399309516,0.003947614692152,-0.272224396467209,0.359423965215683) * MODEL7_texOff(vec2(0,-1));
res += mat4(-0.204375788569450,0.071316801011562,-0.182759672403336,0.097943268716335,0.052075430750847,0.258472859859467,-0.113599486649036,0.023733386769891,0.077897943556309,0.203626126050949,-0.437104672193527,0.015131416730583,-0.141897827386856,0.134158074855804,0.004627969581634,-0.022350730374455) * MODEL7_texOff(vec2(0,0));
res += mat4(0.021217601373792,-0.096660867333412,0.046675782650709,-0.002486569574103,0.019654452800751,0.139012947678566,0.035421587526798,-0.107706956565380,-0.171336799860001,-0.361904442310333,0.079313732683659,-0.224659636616707,-0.010601270012558,-0.012578583322465,0.011335047893226,0.041285980492830) * MODEL7_texOff(vec2(0,1));
res += mat4(0.050892293453217,-0.019126448780298,0.348942667245865,0.004281452856958,-0.091114081442356,-0.003977933432907,0.014473913237453,-0.069625549018383,-0.044970981776714,-0.008604935370386,-0.018857475370169,-0.027217740193009,0.086641505360603,-0.035929810255766,-0.009157101623714,-0.054013144224882) * MODEL7_texOff(vec2(1,-1));
res += mat4(-0.139977216720581,-0.056681890040636,0.163950443267822,-0.106914065778255,-0.143066421151161,0.022985737770796,0.026639835909009,-0.017538294196129,-0.013674895279109,-0.070502050220966,-0.358491122722626,-0.014812878333032,-0.266405135393143,-0.029580062255263,-0.079483106732368,-0.169863611459732) * MODEL7_texOff(vec2(1,0));
res += mat4(-0.046969413757324,0.056506805121899,-0.048028565943241,0.062316603958607,-0.017624700441957,0.061979360878468,0.108147598803043,0.131120368838310,-0.140242278575897,0.005951323080808,0.104072585701942,-0.056937042623758,0.011317740194499,-0.026008211076260,0.052754133939743,-0.178438216447830) * MODEL7_texOff(vec2(1,1));
res += mat4(-0.036385379731655,0.063549906015396,-0.003857699688524,-0.086089245975018,0.033088259398937,-0.090571478009224,0.056624758988619,0.027069183066487,-0.027971485629678,0.091126017272472,-0.036740560084581,0.067096479237080,-0.000104717444628,-0.111235894262791,0.197664082050323,0.125853136181831) * MODEL8_texOff(vec2(-1,-1));
res += mat4(0.113752380013466,0.017946520820260,0.019064141437411,0.130481466650963,0.071175545454025,-0.425079405307770,0.028596507385373,-0.307411760091782,-0.165516421198845,0.047109313309193,0.077538080513477,-0.106953822076321,-0.078783713281155,0.116952992975712,0.039397187530994,-0.058126065880060) * MODEL8_texOff(vec2(-1,0));
res += mat4(0.082915410399437,0.131288066506386,0.003194358199835,0.117110557854176,0.032678283751011,-0.147721067070961,-0.058222711086273,0.068873003125191,-0.055461015552282,0.182364821434021,-0.008401733823121,0.047494318336248,0.111664049327374,-0.021007161587477,-0.003703639144078,-0.082196235656738) * MODEL8_texOff(vec2(-1,1));
res += mat4(0.028000505641103,-0.012081525288522,0.202005878090858,-0.180394500494003,-0.000154280802235,-0.003527221735567,-0.228647500276566,0.084016107022762,0.316828280687332,0.108532689511776,-0.222846508026123,0.058862805366516,-0.068956144154072,0.057765223085880,0.044160831719637,0.280409932136536) * MODEL8_texOff(vec2(0,-1));
res += mat4(-0.161993831396103,-0.118057265877724,-0.261502206325531,-0.144358634948730,0.127274900674820,-0.270101338624954,0.258036315441132,-0.341910213232040,0.141273945569992,0.111414737999439,0.337406367063522,-0.098053209483624,0.198986575007439,0.070917695760727,-0.052979882806540,0.024392426013947) * MODEL8_texOff(vec2(0,0));
res += mat4(-0.038569994270802,-0.140137702226639,-0.001520897727460,-0.045291323214769,0.064212068915367,-0.164789602160454,0.004680705256760,-0.107027962803841,0.058380145579576,0.098499901592731,0.075574845075607,-0.166145309805870,-0.283410012722015,0.033739876002073,0.036891367286444,-0.037541203200817) * MODEL8_texOff(vec2(0,1));
res += mat4(-0.227719813585281,0.088226877152920,0.078350730240345,-0.127539932727814,0.023016953840852,0.011626680381596,-0.073464147746563,0.092226348817348,-0.065601520240307,0.022468201816082,-0.078858911991119,-0.052142500877380,-0.017500421032310,0.087270684540272,0.195194542407990,0.193952932953835) * MODEL8_texOff(vec2(1,-1));
res += mat4(-0.273928672075272,0.054817236959934,0.180609896779060,0.057607535272837,-0.417554050683975,0.141540497541428,0.065720930695534,0.103116951882839,-0.260473370552063,0.089643925428391,0.202473670244217,0.083057314157486,0.147019058465958,-0.035223569720984,0.082155913114548,-0.039856154471636) * MODEL8_texOff(vec2(1,0));
res += mat4(-0.097068667411804,0.033125206828117,0.010944797657430,-0.015706222504377,-0.127255707979202,0.031540483236313,-0.022460451349616,0.030674476176500,0.004361996427178,0.083405554294586,0.051112134009600,0.079255096614361,0.068325392901897,-0.034037001430988,0.036695834249258,0.014513682574034) * MODEL8_texOff(vec2(1,1));
res += mat4(-0.083125971257687,-0.101797044277191,-0.250436246395111,0.254958152770996,0.097199149429798,0.007592889014632,-0.063698232173920,0.053507126867771,0.142478674650192,-0.184148311614990,0.097052261233330,0.085787884891033,-0.086964398622513,-0.033959079533815,-0.024379206821322,0.022046931087971) * MODEL9_texOff(vec2(-1,-1));
res += mat4(-0.067815363407135,0.007026072591543,0.334868043661118,-0.013080986216664,0.188883453607559,0.029357627034187,-0.049519184976816,0.103735543787479,-0.169752582907677,-0.167372062802315,0.095005139708519,-0.187396138906479,0.089903965592384,-0.244177743792534,0.148016616702080,-0.093728855252266) * MODEL9_texOff(vec2(-1,0));
res += mat4(0.169135034084320,-0.141549244523048,0.058361794799566,-0.218771800398827,0.183151185512543,0.085529021918774,-0.126245155930519,0.084581986069679,-0.048011519014835,-0.192585483193398,-0.072681501507759,-0.006998327560723,-0.009514320641756,-0.048656720668077,-0.064231075346470,-0.071251600980759) * MODEL9_texOff(vec2(-1,1));
res += mat4(0.156741365790367,-0.100730471313000,-0.452221751213074,0.162935018539429,-0.011567913927138,0.139800667762756,-0.044773239642382,0.085394211113453,-0.027531689032912,-0.023852029815316,-0.137170881032944,-0.036782287061214,0.011571208946407,0.079502664506435,-0.131535872817039,0.183634981513023) * MODEL9_texOff(vec2(0,-1));
res += mat4(0.092505604028702,-0.000994400586933,0.401360780000687,-0.050781060010195,0.261434823274612,0.000612419098616,-0.255483895540237,0.019200198352337,-0.258023649454117,0.439764350652695,0.276197433471680,0.070563852787018,0.298352777957916,0.418295443058014,-0.014497984200716,0.041505713015795) * MODEL9_texOff(vec2(0,0));
res += mat4(-0.009745733812451,0.153790682554245,-0.112638778984547,0.128743469715118,-0.269677698612213,-0.125817492604256,0.005656008608639,-0.058216415345669,-0.147429481148720,0.050450555980206,-0.144772768020630,-0.066896095871925,0.009031689725816,-0.061568718403578,-0.055454835295677,-0.000527722644620) * MODEL9_texOff(vec2(0,1));
res += mat4(0.054884452372789,0.076432518661022,-0.108137384057045,-0.016610540449619,0.125356167554855,-0.013126354664564,0.046792935580015,-0.073462143540382,0.088672816753387,-0.089854016900063,0.046505771577358,-0.141309991478920,-0.215182155370712,0.026134001091123,0.042302768677473,-0.275242805480957) * MODEL9_texOff(vec2(1,-1));
res += mat4(-0.240150824189186,-0.005169528070837,0.040426682680845,0.216915786266327,0.069250658154488,0.019633140414953,0.110302701592445,-0.171760752797127,-0.039293810725212,-0.134696751832962,-0.520100593566895,0.489415138959885,-0.028292564675212,-0.152224466204643,0.142725855112076,-0.087646499276161) * MODEL9_texOff(vec2(1,0));
res += mat4(-0.003441727487370,-0.053479831665754,-0.086563855409622,0.276542395353317,0.141271606087685,0.002705860184506,-0.067410275340080,-0.150981381535530,-0.155321195721626,-0.030712202191353,-0.054891418665648,-0.180405288934708,-0.114851571619511,0.024432182312012,-0.054133009165525,-0.039423972368240) * MODEL9_texOff(vec2(1,1));
res += mat4(0.047618404030800,0.040948569774628,-0.014434507116675,-0.045754760503769,0.069183371961117,-0.114093825221062,0.153864517807961,-0.040863167494535,-0.059976473450661,0.089136943221092,-0.222039893269539,0.023686623200774,-0.092469416558743,-0.018161417916417,-0.058908518403769,-0.048818718641996) * MODEL10_texOff(vec2(-1,-1));
res += mat4(0.055034276098013,0.165297776460648,-0.028084706515074,0.090044088661671,-0.128648310899734,-0.221556916832924,0.165166988968849,-0.040584392845631,-0.231820419430733,0.118490241467953,0.280905336141586,-0.111764259636402,-0.007968473248184,0.085272133350372,0.010986535809934,0.027037963271141) * MODEL10_texOff(vec2(-1,0));
res += mat4(-0.013705445453525,0.018287811428308,0.064302861690521,0.061048634350300,0.042951758950949,0.001729339011945,-0.028956344351172,-0.157997444272041,-0.073736190795898,-0.044717948883772,0.011997140012681,-0.146344169974327,0.011799544095993,-0.056231208145618,-0.060352906584740,-0.094370603561401) * MODEL10_texOff(vec2(-1,1));
res += mat4(0.008311225101352,0.216985061764717,-0.141522586345673,0.079431869089603,-0.000252338330029,-0.209750607609749,0.275077104568481,-0.028098180890083,0.081017710268497,-0.127804249525070,0.051910191774368,-0.011330068111420,-0.013660841621459,-0.106312602758408,0.010450067929924,0.063500024378300) * MODEL10_texOff(vec2(0,-1));
res += mat4(-0.144647076725960,0.194707632064819,0.134316757321358,0.138903394341469,-0.303753405809402,-0.270545840263367,0.241841271519661,0.120399273931980,0.482583075761795,0.096787646412849,-0.415509313344955,0.065296038985252,-0.049597360193729,-0.095142275094986,-0.002696381881833,0.155702307820320) * MODEL10_texOff(vec2(0,0));
res += mat4(0.044421721249819,0.182604014873505,0.019792040809989,0.205268934369087,0.228182539343834,0.062325052917004,-0.134045273065567,-0.125564828515053,0.221493110060692,0.140276744961739,0.047681324183941,0.078291073441505,-0.152910292148590,0.017912534996867,-0.056769251823425,-0.065207853913307) * MODEL10_texOff(vec2(0,1));
res += mat4(0.304313451051712,0.069204688072205,-0.050112266093493,-0.217344373464584,0.239273667335510,0.112074904143810,0.045083552598953,-0.014855191111565,0.090030379593372,-0.133476585149765,0.023861782625318,0.162299767136574,-0.055873304605484,0.068494632840157,-0.056963935494423,-0.077490702271461) * MODEL10_texOff(vec2(1,-1));
res += mat4(-0.070440635085106,-0.007031875662506,0.031861081719398,0.171490460634232,0.221191391348839,0.091855928301811,0.042790174484253,0.002574258716777,-0.213793739676476,-0.042176701128483,-0.033920824527740,0.012120131403208,0.169326022267342,0.013651601970196,-0.038204211741686,-0.081578150391579) * MODEL10_texOff(vec2(1,0));
res += mat4(0.186305090785027,0.021722996607423,0.010552658699453,0.163298606872559,0.030683130025864,-0.004331805743277,0.071207620203495,0.104252636432648,-0.156388744711876,-0.067036725580692,0.062764763832092,0.053764220327139,-0.015391383320093,-0.040680956095457,0.027252649888396,-0.105532951653004) * MODEL10_texOff(vec2(1,1));
res += mat4(0.162130668759346,-0.078978613018990,-0.268199205398560,0.211185514926910,-0.098385326564312,-0.055009793490171,0.097933419048786,-0.041803531348705,0.023779101669788,-0.066658392548561,-0.279855966567993,-0.103471249341965,0.018284725025296,-0.060858115553856,0.220252022147179,0.197970762848854) * MODEL11_texOff(vec2(-1,-1));
res += mat4(0.046003960072994,0.015904307365417,-0.027342397719622,0.101305723190308,-0.173854559659958,0.008792424574494,0.197490587830544,-0.038599766790867,0.201267018914223,0.103803299367428,-0.114200629293919,0.565766215324402,0.152357369661331,-0.154058694839478,0.018110493198037,0.015128976665437) * MODEL11_texOff(vec2(-1,0));
res += mat4(0.159679070115089,-0.100003473460674,-0.090358540415764,0.021517213433981,-0.028861509636045,0.089078404009342,-0.007610143627971,0.045371420681477,0.062964066863060,-0.056421089917421,0.106528639793396,-0.098069638013840,0.121832408010960,-0.097189426422119,0.012944599613547,-0.025340970605612) * MODEL11_texOff(vec2(-1,1));
res += mat4(0.201191231608391,-0.021071448922157,-0.527971267700195,0.311991721391678,-0.036161813884974,0.087934613227844,-0.103734187781811,0.088425651192665,0.057063832879066,-0.146094679832458,-0.098838202655315,-0.207049489021301,-0.047924257814884,-0.114596724510193,0.279236465692520,-0.130822256207466) * MODEL11_texOff(vec2(0,-1));
res += mat4(0.149409785866737,-0.081495255231857,0.315390437841415,0.193030431866646,0.344513028860092,0.108111694455147,0.024120379239321,-0.082612670958042,-0.005766182672232,-0.109810203313828,0.285336703062057,0.203189283609390,-0.017453322187066,-0.175355523824692,-0.140296667814255,-0.215829104185104) * MODEL11_texOff(vec2(0,0));
res += mat4(0.154451936483383,0.143213495612144,-0.049635373055935,0.006936883553863,-0.010591547936201,0.088324651122093,0.210220724344254,0.034707020968199,0.139254242181778,-0.024117458611727,-0.102563492953777,-0.183099105954170,-0.003518085926771,0.040344152599573,-0.075159206986427,0.163620099425316) * MODEL11_texOff(vec2(0,1));
res += mat4(0.032401319593191,-0.024927251040936,-0.198661357164383,0.108834959566593,-0.151341289281845,-0.112318255007267,-0.068362213671207,-0.106982827186584,0.103813581168652,0.079349294304848,-0.272336304187775,0.390922337770462,-0.463511586189270,-0.002851466415450,0.154542788863182,0.202159449458122) * MODEL11_texOff(vec2(1,-1));
res += mat4(0.006404571700841,-0.027782760560513,-0.055288504809141,0.103156886994839,-0.301277279853821,0.061343189328909,-0.107139967381954,-0.322684466838837,-0.102259509265423,0.217927888035774,0.100655846297741,0.178140297532082,-0.175203025341034,-0.097105406224728,-0.033557012677193,0.340573757886887) * MODEL11_texOff(vec2(1,0));
res += mat4(0.036771330982447,0.036976858973503,-0.143936291337013,0.058225881308317,-0.054241780191660,-0.006320505402982,-0.039573114365339,-0.097345598042011,0.035187508910894,0.063977077603340,0.125517264008522,-0.112743988633156,0.024508289992809,0.023835467174649,-0.019282327964902,0.079604431986809) * MODEL11_texOff(vec2(1,1));
res += mat4(-0.086838923394680,-0.106556065380573,0.167348250746727,0.230293005704880,-0.003774601034820,0.134536102414131,-0.006681035272777,0.024292219430208,0.043069157749414,0.041925225406885,0.139417514204979,0.073575891554356,-0.128720909357071,-0.016636764630675,-0.120825231075287,-0.145317003130913) * MODEL12_texOff(vec2(-1,-1));
res += mat4(0.160621225833893,-0.096889607608318,-0.644961833953857,0.003474007593468,-0.084196336567402,0.114456214010715,-0.089344263076782,-0.020234577357769,-0.145486474037170,-0.210595011711121,0.054684679955244,-0.126516476273537,0.059697240591049,0.054248370230198,-0.021996226161718,0.132331803441048) * MODEL12_texOff(vec2(-1,0));
res += mat4(-0.068991161882877,0.085951261222363,-0.037230420857668,-0.001032630680129,-0.199251204729080,-0.082332327961922,-0.067683815956116,-0.031565997749567,-0.072350099682808,-0.013075518421829,-0.108388431370258,0.143431723117828,-0.055353287607431,0.071152783930302,0.013519141823053,0.188900604844093) * MODEL12_texOff(vec2(-1,1));
res += mat4(-0.090051412582397,0.013625592924654,-0.167952686548233,0.130644023418427,0.074374042451382,0.045460309833288,0.095833107829094,-0.208743199706078,-0.208204224705696,-0.041721887886524,0.167189911007881,0.026552192866802,-0.118331141769886,0.032288134098053,0.090340852737427,-0.325395077466965) * MODEL12_texOff(vec2(0,-1));
res += mat4(0.038937646895647,0.048529792577028,0.085749991238117,-0.320247501134872,0.001718988292851,-0.168086707592010,0.210379585623741,-0.036124084144831,0.058332312852144,-0.191038012504578,0.076047390699387,-0.103613972663879,0.111949801445007,0.123562335968018,0.012105368077755,0.109086878597736) * MODEL12_texOff(vec2(0,0));
res += mat4(-0.034964226186275,-0.009660298936069,0.123240530490875,0.124907761812210,0.142072588205338,-0.053562156856060,-0.290237754583359,-0.055072452872992,-0.059066645801067,0.040402714163065,-0.159621119499207,0.019493993371725,-0.046743370592594,-0.117266841232777,0.056638978421688,-0.109915949404240) * MODEL12_texOff(vec2(0,1));
res += mat4(0.050998322665691,-0.027767712250352,0.002456648042426,0.072539538145065,0.053058058023453,0.076507203280926,-0.059626389294863,-0.017651604488492,0.100119605660439,-0.013120145536959,-0.119017601013184,0.000008158294804,-0.087128140032291,-0.063910149037838,-0.032950975000858,-0.196110039949417) * MODEL12_texOff(vec2(1,-1));
res += mat4(0.213826328516006,-0.097209483385086,0.117166072130203,0.197156623005867,-0.271874696016312,-0.042849175632000,0.046643029898405,-0.016402648761868,-0.169008642435074,0.149574339389801,0.249139085412025,-0.130118638277054,-0.037530422210693,-0.027823826298118,-0.144214615225792,0.038928329944611) * MODEL12_texOff(vec2(1,0));
res += mat4(0.124579124152660,-0.016171982511878,0.018385155126452,0.111421659588814,0.065358109772205,0.050971221178770,-0.214457988739014,0.089840829372406,-0.022192498669028,0.124312669038773,-0.064837686717510,-0.049734614789486,-0.040335550904274,0.074791043996811,-0.107933916151524,-0.040259271860123) * MODEL12_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(-0.001912747393362,-0.184787511825562,0.083411410450935,0.084905177354813) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 3.200 * > OUTPUT.h LUMA.h 3.200 * > *
//!COMPONENTS 4
//!BIND MODEL7
//!BIND MODEL8
//!BIND MODEL9
//!BIND MODEL10
//!BIND MODEL11
//!BIND MODEL12
//!SAVE MODEL6
//!DESC [AiUpscale_Medium_4x_Photo] mapping 3_6

vec4 hook()
{
vec4 res = vec4(0.031778626143932,-0.115391954779625,0.086852937936783,-0.010331762954593);
res += mat4(-0.016486614942551,-0.209003329277039,0.011283162049949,0.284468531608582,0.001281013712287,-0.022940590977669,-0.032687898725271,-0.068071097135544,-0.008683502674103,-0.031979367136955,0.032769989222288,0.071306578814983,-0.038766570389271,-0.011788179166615,0.175065204501152,-0.003129670629278) * MODEL7_texOff(vec2(-1,-1));
res += mat4(-0.033555366098881,-0.277500897645950,0.072801567614079,0.447663635015488,-0.034358061850071,0.136854887008667,0.029693301767111,-0.130071669816971,0.036472365260124,-0.019796766340733,0.075511939823627,0.022905090823770,0.008455095812678,-0.116728879511356,0.122960790991783,-0.020579148083925) * MODEL7_texOff(vec2(-1,0));
res += mat4(-0.040336869657040,-0.198750004172325,0.062157500535250,0.296003878116608,0.091216579079628,0.262356758117676,-0.223037764430046,-0.250889688730240,0.026068517938256,-0.021157037466764,0.072666965425014,-0.007257967256010,0.006580905057490,-0.103853650391102,-0.036009505391121,0.019888401031494) * MODEL7_texOff(vec2(-1,1));
res += mat4(0.013797687366605,-0.101092532277107,0.039668712764978,0.056651271879673,-0.003506514942273,-0.009839827194810,-0.017880659550428,0.046870328485966,0.017092235386372,-0.011808460578322,-0.067041605710983,-0.002052903175354,0.123700909316540,0.104414030909538,-0.110524512827396,-0.108015984296799) * MODEL7_texOff(vec2(0,-1));
res += mat4(0.026834709569812,0.113968417048454,0.080645255744457,-0.003381405025721,0.024548981338739,0.183849051594734,-0.229940697550774,-0.019249485805631,0.003302900586277,0.044445533305407,-0.081159427762032,-0.000042502375436,-0.659379601478577,-0.032922234386206,-0.078035078942776,0.152494102716446) * MODEL7_texOff(vec2(0,0));
res += mat4(0.032451361417770,-0.141519010066986,-0.074571445584297,0.036558791995049,0.010438567027450,0.094475433230400,-0.306636780500412,-0.039098452776670,0.134822040796280,-0.342441737651825,0.235182955861092,0.025651998817921,0.255454719066620,0.152299776673317,0.009861253201962,0.110765606164932) * MODEL7_texOff(vec2(0,1));
res += mat4(0.018764939159155,0.090029269456863,-0.108120329678059,-0.093736626207829,-0.032674368470907,-0.010025804862380,0.002815219108015,0.070662096142769,-0.015355915762484,-0.061096210032701,-0.006750677246600,-0.052803944796324,-0.078018434345722,-0.216397523880005,0.013027952052653,-0.056812070310116) * MODEL7_texOff(vec2(1,-1));
res += mat4(0.035995807498693,0.037297245115042,0.065320335328579,0.101083822548389,-0.034387059509754,-0.110113494098186,-0.125026330351830,0.160795584321022,-0.004484886769205,-0.216497972607613,0.063453368842602,-0.106997705996037,-0.067060098052025,0.095299713313580,0.175398349761963,-0.195725753903389) * MODEL7_texOff(vec2(1,0));
res += mat4(0.054662846028805,0.128874689340591,-0.055287681519985,0.016381407156587,0.009281112812459,-0.116325668990612,-0.205276712775230,0.115806497633457,0.092174343764782,-0.473597884178162,-0.086116194725037,0.026868714019656,0.034145675599575,-0.053323820233345,-0.067741751670837,0.004732704255730) * MODEL7_texOff(vec2(1,1));
res += mat4(-0.027907876297832,0.149439185857773,0.096105977892876,-0.172969505190849,0.002854895545170,0.113407827913761,0.032931208610535,0.152403369545937,-0.009372737258673,0.046270210295916,-0.018985342234373,-0.034694779664278,0.006522316951305,0.341281771659851,-0.042093735188246,0.029203517362475) * MODEL8_texOff(vec2(-1,-1));
res += mat4(0.023751476779580,0.084822006523609,-0.088316425681114,-0.003553594462574,0.019901020452380,0.093345485627651,0.088386081159115,-0.208898395299911,0.018681284040213,0.061565171927214,-0.003821457037702,-0.542289853096008,0.041045997291803,0.280506879091263,0.450667321681976,0.036487992852926) * MODEL8_texOff(vec2(-1,0));
res += mat4(0.027890579774976,0.163334161043167,-0.042194623500109,0.163101926445961,-0.003758829785511,-0.028985489159822,0.176723793148994,0.094088256359100,0.011237465776503,0.016580561175942,0.041117895394564,-0.183475524187088,-0.007483256980777,0.151332914829254,0.159551039338112,-0.053241796791553) * MODEL8_texOff(vec2(-1,1));
res += mat4(-0.030258757993579,0.135043144226074,0.021350959315896,-0.031139759346843,-0.041181806474924,0.175879880785942,0.002799789188430,-0.032960530370474,-0.018221797421575,-0.141792193055153,0.069894060492516,0.007336765062064,-0.011828526854515,0.471211045980453,-0.167726114392281,-0.004343630280346) * MODEL8_texOff(vec2(0,-1));
res += mat4(-0.084181383252144,-0.072130441665649,-0.084291696548462,-0.046297773718834,-0.032713890075684,0.046814177185297,-0.194403231143951,0.448216348886490,-0.353434652090073,-0.073869250714779,-0.067590646445751,0.044690299779177,-0.013165429234505,-0.106404319405556,0.146559298038483,0.070795923471451) * MODEL8_texOff(vec2(0,0));
res += mat4(0.027292592450976,-0.175873294472694,0.023532915860415,-0.003592622466385,-0.026842536404729,0.250550150871277,0.343194812536240,0.035821620374918,-0.007155794184655,0.150830417871475,0.129298329353333,-0.114153265953064,-0.024945983663201,0.131142154335976,0.050293341279030,-0.076919108629227) * MODEL8_texOff(vec2(0,1));
res += mat4(0.008357618935406,0.042963523417711,0.034218523651361,0.002095083473250,-0.010882440954447,0.146622598171234,-0.001347115961835,0.062440127134323,-0.016553284600377,0.112011745572090,-0.009635708294809,0.100090548396111,-0.009451934136450,0.313545316457748,-0.089077353477478,-0.070321045815945) * MODEL8_texOff(vec2(1,-1));
res += mat4(0.057934954762459,0.104443892836571,0.005063928198069,-0.040444079786539,-0.079475268721581,0.058507703244686,-0.048586636781693,0.080923154950142,0.027588192373514,0.107241548597813,-0.269271671772003,-0.039767231792212,0.005245458334684,0.321547657251358,0.106785736978054,-0.017536450177431) * MODEL8_texOff(vec2(1,0));
res += mat4(0.014993811957538,-0.075271680951118,0.022612763568759,-0.033126521855593,-0.035763189196587,0.283335179090500,0.052948419004679,0.046964757144451,-0.023557696491480,-0.231290757656097,-0.038186393678188,-0.062939070165157,-0.004001735243946,0.387333691120148,-0.092063210904598,0.024090487509966) * MODEL8_texOff(vec2(1,1));
res += mat4(0.039249271154404,0.048882514238358,0.091045863926411,0.097341634333134,-0.061799671500921,0.055534441024065,0.013564719818532,0.034416057169437,0.028795158490539,-0.026457766070962,0.054605752229691,0.093234792351723,-0.068986497819424,0.011812599375844,0.017707919701934,0.252681642770767) * MODEL9_texOff(vec2(-1,-1));
res += mat4(-0.049931652843952,0.056417379528284,0.048778023570776,0.150109589099884,-0.070076704025269,-0.087207622826099,-0.039421383291483,0.181305810809135,0.005609587766230,-0.051659807562828,0.132168218493462,-0.149053543806076,-0.012214108370245,-0.034218348562717,0.001372861210257,-0.007076713256538) * MODEL9_texOff(vec2(-1,0));
res += mat4(-0.050110306590796,-0.219581857323647,0.086974069476128,0.049084857106209,0.049550145864487,0.136933997273445,0.089033327996731,0.165624991059303,0.008047039620578,-0.165012136101723,0.079169228672981,0.034936219453812,-0.042884428054094,0.054932963103056,-0.134276762604713,0.135681316256523) * MODEL9_texOff(vec2(-1,1));
res += mat4(-0.002490608487278,0.195226043462753,0.129561483860016,0.060488127171993,-0.018691591918468,-0.029990907758474,-0.084166161715984,0.014599390327930,0.026832329109311,0.009605384431779,0.046731647104025,0.081922642886639,-0.014162729494274,0.153068259358406,-0.096062645316124,0.286167502403259) * MODEL9_texOff(vec2(0,-1));
res += mat4(-0.040723513811827,-0.046625800430775,0.007176560349762,0.100687980651855,-0.241513893008232,0.244516968727112,0.029724674299359,0.114366449415684,-0.017698755487800,-0.074721410870552,-0.007921357639134,0.240440234541893,-0.310748398303986,-0.012549977749586,0.044476579874754,-0.146849870681763) * MODEL9_texOff(vec2(0,0));
res += mat4(-0.078774780035019,-0.000113504873298,0.117443777620792,0.119703985750675,0.220486387610435,-0.046316586434841,-0.077996715903282,-0.076398000121117,0.002425536280498,0.020407229661942,-0.060830287635326,0.143973633646965,-0.010392874479294,0.049965791404247,-0.208355158567429,0.150034338235855) * MODEL9_texOff(vec2(0,1));
res += mat4(0.009495682083070,0.147249698638916,-0.015409361571074,-0.017545215785503,-0.109329245984554,-0.095979183912277,-0.041903577744961,-0.007455260492861,-0.006788140628487,-0.155683770775795,0.005499970633537,-0.122656106948853,0.118837468326092,0.191480904817581,-0.030771959573030,-0.154591679573059) * MODEL9_texOff(vec2(1,-1));
res += mat4(-0.041827831417322,0.177695170044899,0.003024806035683,0.054168619215488,-0.231869533658028,-0.194962188601494,0.048356719315052,0.194266960024834,0.027561001479626,0.062223210930824,0.080853573977947,-0.052878078073263,0.332880467176437,-0.074046485126019,-0.159438043832779,0.117807298898697) * MODEL9_texOff(vec2(1,0));
res += mat4(-0.053656432777643,0.190719351172447,-0.075065553188324,0.084793090820313,-0.028140384703875,-0.168903380632401,-0.045776337385178,0.050317957997322,-0.002960406476632,-0.217544823884964,-0.012702601030469,-0.053734693676233,0.063339486718178,0.061517443507910,-0.086473248898983,-0.120095722377300) * MODEL9_texOff(vec2(1,1));
res += mat4(-0.001559560187161,-0.027052085846663,0.019045796245337,-0.347068607807159,0.077877297997475,-0.050110775977373,0.100732892751694,-0.119834236800671,0.002917780540884,-0.043863065540791,0.075945906341076,0.170440196990967,-0.018534755334258,0.019152930006385,0.032657612115145,-0.105548076331615) * MODEL10_texOff(vec2(-1,-1));
res += mat4(0.000463243224658,-0.020663052797318,0.062099050730467,-0.284350693225861,0.050437368452549,-0.200676873326302,0.011406694538891,-0.027568815276027,0.137335315346718,-0.055878829210997,-0.084656484425068,-0.273586273193359,-0.074527449905872,0.042831216007471,0.039789881557226,0.099837489426136) * MODEL10_texOff(vec2(-1,0));
res += mat4(-0.012689436785877,0.020141934975982,0.065916068851948,-0.244938150048256,0.005806619767100,-0.099322527647018,0.066972360014915,-0.077894493937492,-0.016976917162538,-0.077926814556122,0.002204846823588,-0.131440311670303,-0.030906157568097,0.051687024533749,-0.022351423278451,-0.040742058306932) * MODEL10_texOff(vec2(-1,1));
res += mat4(-0.046136949211359,-0.109201066195965,-0.043834831565619,-0.217193961143494,0.058181777596474,-0.055545598268509,-0.003273387672380,-0.056584835052490,-0.069515071809292,-0.129683867096901,-0.089860819280148,0.044994566589594,-0.032833144068718,0.057096924632788,-0.013252150267363,-0.098143883049488) * MODEL10_texOff(vec2(0,-1));
res += mat4(-0.078929103910923,0.013674691319466,0.109314881265163,-0.411197870969772,0.063572019338608,-0.283814609050751,-0.046551920473576,0.242729827761650,-0.285024553537369,-0.116296045482159,0.282664924860001,0.208739951252937,-0.037275481969118,-0.066176459193230,-0.082081682980061,-0.106294780969620) * MODEL10_texOff(vec2(0,0));
res += mat4(0.006595152430236,0.036805484443903,0.134448349475861,-0.042227864265442,-0.041892178356647,0.003289869055152,0.089591518044472,-0.072944805026054,-0.042158640921116,-0.049024499952793,-0.001405839109793,-0.139535918831825,-0.090969972312450,-0.190459981560707,-0.124771468341351,-0.070241436362267) * MODEL10_texOff(vec2(0,1));
res += mat4(0.005661725997925,-0.112631119787693,-0.027959633618593,-0.123831138014793,0.015146301127970,-0.093701131641865,-0.020097812637687,0.009351023472846,-0.033241499215364,0.061585795134306,0.170358002185822,0.091460779309273,-0.016109554097056,0.132085248827934,0.005607625469565,0.029904132708907) * MODEL10_texOff(vec2(1,-1));
res += mat4(0.014928916469216,0.100163109600544,0.226087987422943,-0.038078851997852,-0.037269502878189,0.012006451375782,-0.062481604516506,0.027719840407372,0.008662071079016,0.308287650346756,-0.035855557769537,-0.087342031300068,-0.024314278736711,0.088221408426762,0.002412932226434,0.096260704100132) * MODEL10_texOff(vec2(1,0));
res += mat4(0.019677571952343,0.196979269385338,0.081346459686756,0.015716141089797,-0.059337861835957,-0.010449578054249,-0.071892023086548,0.021249795332551,0.044087238609791,0.131419658660889,-0.155558928847313,-0.059068039059639,-0.034574959427118,-0.078420810401440,-0.041821736842394,0.031636834144592) * MODEL10_texOff(vec2(1,1));
res += mat4(0.003213449381292,-0.025561707094312,0.016680628061295,0.210217729210854,0.061599440872669,-0.055839970707893,0.015887895599008,0.019293161109090,-0.033110100775957,0.049811713397503,0.094815760850906,0.212814107537270,-0.031728606671095,-0.016816439107060,-0.092389389872551,0.088550768792629) * MODEL11_texOff(vec2(-1,-1));
res += mat4(-0.016553735360503,0.050167646259069,0.076062530279160,0.001746675698087,0.031908903270960,-0.104414455592632,-0.037667289376259,-0.362579613924026,-0.039491672068834,0.147003918886185,0.048691574484110,0.056390535086393,-0.014540141448379,-0.029914600774646,0.072445183992386,0.283725023269653) * MODEL11_texOff(vec2(-1,0));
res += mat4(-0.035063903778791,0.007000712212175,0.005681896116585,-0.098325461149216,0.032564252614975,-0.199257850646973,-0.076262950897217,-0.093297019600868,-0.029897836968303,0.106136597692966,0.010521819815040,-0.032537437975407,0.013975551351905,0.126021444797516,0.218113884329796,0.142440676689148) * MODEL11_texOff(vec2(-1,1));
res += mat4(0.000578140141442,0.237280875444412,0.047295954078436,0.163638532161713,-0.001615248271264,-0.134505897760391,-0.147320419549942,-0.042782936245203,-0.029574124142528,-0.039744626730680,0.103494048118591,0.026526948437095,-0.015163353644311,0.173577859997749,-0.166314616799355,0.063128009438515) * MODEL11_texOff(vec2(0,-1));
res += mat4(-0.017804153263569,-0.254290699958801,-0.060113817453384,0.089166559278965,0.113958135247231,-0.136215701699257,0.127800092101097,0.430062651634216,-0.068385817110538,0.376360625028610,0.045369248837233,0.058724600821733,0.073856651782990,0.158387973904610,0.203225955367088,-0.197589337825775) * MODEL11_texOff(vec2(0,0));
res += mat4(-0.092049814760685,-0.169442757964134,-0.090985119342804,0.032700125128031,0.055364951491356,0.070123381912708,0.068754479289055,-0.149367511272430,-0.030666477978230,0.035029206424952,0.157309189438820,0.033935807645321,0.060240693390369,0.267990052700043,0.142342269420624,0.019365180283785) * MODEL11_texOff(vec2(0,1));
res += mat4(0.020061252638698,-0.107239052653313,-0.054330557584763,0.017943898215890,-0.015264832414687,-0.002048393711448,0.013723350130022,0.137498810887337,0.043675091117620,0.301489621400833,0.067736610770226,0.047402471303940,0.020478345453739,0.258902668952942,-0.139665275812149,-0.048461597412825) * MODEL11_texOff(vec2(1,-1));
res += mat4(0.007350833620876,-0.139009654521942,-0.006768347229809,-0.010090441443026,-0.147953838109970,-0.057652015239000,-0.220939710736275,0.003634927095845,0.024435747414827,0.263761341571808,-0.137401536107063,-0.022399412468076,0.040951069444418,0.338116675615311,-0.047372143715620,-0.035471722483635) * MODEL11_texOff(vec2(1,0));
res += mat4(-0.032371964305639,-0.048466645181179,0.108715914189816,0.024552077054977,0.015677141025662,-0.228396117687225,0.020288584753871,0.080477245151997,-0.035392675548792,0.280659496784210,-0.005746867507696,-0.216276809573174,0.078055083751678,0.207964286208153,0.093579292297363,-0.162544727325439) * MODEL11_texOff(vec2(1,1));
res += mat4(-0.072161719202995,-0.043422322720289,-0.026573989540339,0.065992556512356,-0.019389852881432,-0.130022406578064,-0.056115824729204,-0.108675234019756,-0.027361193671823,0.068681046366692,-0.064999438822269,-0.022856071591377,0.009925785474479,-0.059332352131605,0.014905112795532,0.047293875366449) * MODEL12_texOff(vec2(-1,-1));
res += mat4(-0.053033564239740,0.001358600682579,-0.339339852333069,-0.444137632846832,0.013015612959862,-0.054228533059359,-0.069090709090233,0.182334125041962,0.036993551999331,0.084183849394321,0.049999389797449,-0.288259387016296,-0.010877635329962,-0.066064119338989,-0.059010758996010,0.158548519015312) * MODEL12_texOff(vec2(-1,0));
res += mat4(-0.051998905837536,0.014924740418792,0.078642241656780,0.082728572189808,-0.067644163966179,0.043956495821476,0.175274848937988,0.150044530630112,-0.006252085790038,-0.154219552874565,-0.042266387492418,-0.001191952032968,0.015266377478838,0.178113922476768,-0.178278028964996,-0.064239926636219) * MODEL12_texOff(vec2(-1,1));
res += mat4(-0.033001996576786,0.252069354057312,-0.000615303637460,-0.009396374225616,0.009925113990903,0.076149024069309,0.095556028187275,-0.028191147372127,0.049694523215294,0.123099580407143,-0.173162922263145,-0.098744131624699,0.001836500945501,-0.203943297266960,-0.036952849477530,0.085743546485901) * MODEL12_texOff(vec2(0,-1));
res += mat4(-0.107219628989697,-0.096801884472370,0.075455240905285,-0.089205913245678,0.009121938608587,0.085792779922485,-0.023016525432467,0.043140802532434,-0.059977442026138,0.029856650158763,-0.033130038529634,-0.028996780514717,0.051238592714071,-0.047453176230192,-0.069002501666546,-0.001277343719266) * MODEL12_texOff(vec2(0,0));
res += mat4(-0.039426069706678,-0.198994159698486,-0.031405147165060,0.033767651766539,-0.044899545609951,-0.026938464492559,0.176774546504021,0.127515837550163,-0.031574379652739,0.144960775971413,-0.020530333742499,0.015149077400565,0.074332445859909,0.093117438256741,-0.202053189277649,-0.166040882468224) * MODEL12_texOff(vec2(0,1));
res += mat4(0.027775168418884,0.020394489169121,-0.045810032635927,-0.074811562895775,0.063528284430504,-0.057984527200460,0.001765397610143,-0.045568305999041,0.044662259519100,0.062188167124987,-0.022010385990143,-0.142801374197006,0.002088143723086,-0.244472950696945,-0.021921757608652,-0.083123974502087) * MODEL12_texOff(vec2(1,-1));
res += mat4(0.017982827499509,0.192087829113007,-0.024259364232421,-0.151124358177185,0.033352263271809,-0.046832233667374,0.062168955802917,-0.069725558161736,-0.027175219729543,-0.045095313340425,-0.036018323153257,-0.117498397827148,0.031260635703802,-0.135139569640160,-0.170523077249527,-0.090559594333172) * MODEL12_texOff(vec2(1,0));
res += mat4(0.017856042832136,0.061496395617723,0.020015032961965,-0.018550503998995,-0.033992879092693,0.085289746522903,0.007825216278434,0.017418045550585,0.015686586499214,0.315391063690186,-0.013742091134191,0.019795283675194,0.043519552797079,0.023699281737208,-0.000775934546255,-0.001128873787820) * MODEL12_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(0.776714086532593,0.238610580563545,0.692846179008484,-0.049284417182207) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 3.200 * > OUTPUT.h LUMA.h 3.200 * > *
//!COMPONENTS 4
//!BIND MODEL1
//!BIND MODEL2
//!BIND MODEL3
//!BIND MODEL4
//!BIND MODEL5
//!BIND MODEL6
//!SAVE MODEL7
//!DESC [AiUpscale_Medium_4x_Photo] mapping 4_1

vec4 hook()
{
vec4 res = vec4(-0.065147988498211,-0.179554253816605,-0.112866029143333,-0.206854581832886);
res += mat4(-0.062315233051777,-0.043952342122793,-0.025591496378183,0.018865741789341,-0.023197297006845,0.067867010831833,0.042787469923496,-0.024452388286591,0.022376349195838,-0.194707244634628,-0.137960284948349,-0.090539835393429,-0.077352024614811,-0.033346161246300,-0.031373098492622,0.025674177333713) * MODEL1_texOff(vec2(-1,-1));
res += mat4(-0.142121464014053,0.041349045932293,0.141290336847305,-0.061956990510225,-0.053341839462519,-0.021756969392300,0.102174945175648,-0.040728650987148,-0.042060062289238,0.007177036721259,0.027299383655190,0.011325755156577,0.019908227026463,-0.039814859628677,-0.077844463288784,0.061061836779118) * MODEL1_texOff(vec2(-1,0));
res += mat4(-0.040780413895845,-0.086576461791992,-0.016772713512182,-0.073816150426865,-0.009819410741329,-0.052963521331549,0.056912895292044,-0.031204976141453,-0.045795533806086,-0.013404911383986,-0.012853749096394,0.024235775694251,0.025587579235435,-0.046364270150661,-0.052119407802820,0.001424371264875) * MODEL1_texOff(vec2(-1,1));
res += mat4(-0.108759365975857,0.047409057617188,-0.009786784648895,0.190863534808159,-0.078521594405174,0.020019117742777,-0.035547390580177,-0.035090740770102,0.125724822282791,-0.091244094073772,0.019220136106014,0.071895949542522,0.109359800815582,-0.078728854656219,0.182438850402832,-0.104448549449444) * MODEL1_texOff(vec2(0,-1));
res += mat4(-0.000844656780828,-0.077233456075191,0.062388941645622,0.236994683742523,-0.235227122902870,0.119084827601910,0.011786015704274,-0.140795186161995,0.095361404120922,-0.147780612111092,0.118500843644142,0.484647184610367,-0.209930196404457,-0.381159842014313,-0.352535665035248,-0.123800300061703) * MODEL1_texOff(vec2(0,0));
res += mat4(0.018081322312355,-0.025831501930952,-0.050159614533186,-0.192899808287621,-0.004611750133336,0.051757022738457,0.043847527354956,0.124397806823254,-0.011356007307768,0.048122435808182,-0.004099423065782,-0.028812099248171,-0.056100189685822,0.105812199413776,-0.035877984017134,-0.010306874290109) * MODEL1_texOff(vec2(0,1));
res += mat4(-0.162407472729683,-0.011051367968321,-0.001035126741044,0.077023893594742,0.085567697882652,-0.019544415175915,-0.074162743985653,-0.083366632461548,-0.002113121328875,-0.100327588617802,-0.059251517057419,0.059965211898088,-0.077068127691746,0.059097126126289,0.076403804123402,-0.031563322991133) * MODEL1_texOff(vec2(1,-1));
res += mat4(-0.083817288279533,0.015382053330541,0.071458056569099,0.030972670763731,0.086278751492500,-0.011185602284968,0.048389654606581,-0.040646158158779,0.204332590103149,0.001578465220518,-0.038361344486475,-0.026060046628118,-0.138869285583496,0.118163235485554,-0.073037698864937,-0.011821716092527) * MODEL1_texOff(vec2(1,0));
res += mat4(-0.143847659230232,-0.176485881209373,0.012002278119326,0.038115903735161,-0.015827696770430,0.018720183521509,0.082468181848526,-0.103222467005253,0.052323386073112,-0.016918176785111,0.030887365341187,0.054368846118450,0.034488990902901,-0.035231750458479,-0.030637159943581,0.036116510629654) * MODEL1_texOff(vec2(1,1));
res += mat4(-0.087020061910152,-0.049837071448565,-0.167654037475586,0.007173089776188,0.121483899652958,0.114258453249931,0.138303488492966,-0.034252747893333,-0.040688149631023,0.088042356073856,-0.123511880636215,-0.051641441881657,-0.033178254961967,-0.111911155283451,-0.006899076048285,-0.108632653951645) * MODEL2_texOff(vec2(-1,-1));
res += mat4(0.194263562560081,-0.031683944165707,-0.050655387341976,-0.241090342402458,0.040634073317051,0.142628982663155,-0.044394917786121,0.066057674586773,-0.050864957273006,-0.029642054811120,-0.008628520183265,0.013682658784091,0.064395561814308,-0.126564681529999,-0.033290773630142,-0.065936796367168) * MODEL2_texOff(vec2(-1,0));
res += mat4(0.292663961648941,0.066782228648663,-0.008444968611002,-0.040323749184608,-0.042984426021576,-0.074526712298393,-0.026132004335523,-0.080671690404415,0.055583249777555,0.055567488074303,0.046899981796741,-0.027096513658762,-0.061535108834505,0.046188320964575,-0.043897114694118,-0.032873746007681) * MODEL2_texOff(vec2(-1,1));
res += mat4(0.094772115349770,0.098572745919228,-0.030168702825904,-0.085086144506931,0.115852370858192,-0.106940031051636,-0.085597887635231,-0.069834671914577,-0.009580337442458,0.048786655068398,0.094076700508595,0.017063597217202,-0.005022608209401,0.067429289221764,-0.205419600009918,0.076780550181866) * MODEL2_texOff(vec2(0,-1));
res += mat4(-0.300062865018845,-0.341185271739960,-0.209440529346466,-0.187622830271721,-0.057429805397987,0.355662852525711,-0.098745308816433,-0.025879370048642,0.132282823324203,0.439354002475739,0.189741954207420,-0.114764399826527,-0.182128295302391,-0.291911453008652,-0.110613919794559,-0.163891226053238) * MODEL2_texOff(vec2(0,0));
res += mat4(0.088991358876228,0.080076836049557,-0.085414960980415,0.082137495279312,0.048515398055315,0.111427195370197,0.128882408142090,0.051446303725243,0.046430483460426,0.005575907416642,0.005102964583784,0.011150656268001,-0.126015007495880,-0.012086845003068,0.082210861146450,-0.142079606652260) * MODEL2_texOff(vec2(0,1));
res += mat4(-0.111374273896217,-0.117596834897995,0.003693071193993,0.049568150192499,-0.009635818190873,0.057903841137886,0.070016853511333,-0.015815360471606,0.000722045253497,-0.035700999200344,0.008129886351526,-0.118381105363369,0.078812256455421,0.027338631451130,0.080627739429474,-0.099337413907051) * MODEL2_texOff(vec2(1,-1));
res += mat4(0.195491448044777,-0.039799947291613,-0.065335638821125,-0.016998549923301,-0.029398649930954,-0.064246229827404,0.019084483385086,-0.036284048110247,-0.059965055435896,0.051188427954912,0.196989893913269,0.092005461454391,-0.199131742119789,0.062955796718597,0.154481425881386,0.195082575082779) * MODEL2_texOff(vec2(1,0));
res += mat4(0.083553344011307,0.032113410532475,0.067329801619053,0.047592565417290,0.162440359592438,0.068125210702419,0.020946523174644,-0.074900962412357,0.054258365184069,0.103800825774670,-0.073540911078453,-0.051956810057163,-0.050120566040277,-0.042556881904602,-0.088875114917755,0.057371824979782) * MODEL2_texOff(vec2(1,1));
res += mat4(-0.147851690649986,-0.053601197898388,-0.051758285611868,0.027068438008428,0.180514067411423,-0.092051267623901,-0.143483474850655,0.060669746249914,-0.113993808627129,-0.233669802546501,-0.221701756119728,-0.136486440896988,0.146935790777206,-0.160917177796364,-0.105786390602589,0.062979690730572) * MODEL3_texOff(vec2(-1,-1));
res += mat4(-0.300258338451385,-0.076203212141991,0.043120704591274,-0.099503614008427,0.308766782283783,0.237499281764030,0.182477861642838,-0.057629793882370,-0.064863115549088,-0.075919643044472,0.103081971406937,-0.056768905371428,0.208665728569031,0.248887702822685,-0.055142942816019,0.098019167780876) * MODEL3_texOff(vec2(-1,0));
res += mat4(-0.256010621786118,-0.129161164164543,-0.124506942927837,0.212390825152397,0.019349407404661,-0.038425192236900,-0.089291803538799,-0.142972305417061,0.043311879038811,-0.071423143148422,-0.069409847259521,-0.014579305425286,-0.014895474538207,0.030386565253139,0.077014744281769,-0.106816396117210) * MODEL3_texOff(vec2(-1,1));
res += mat4(-0.205554321408272,-0.030966717749834,-0.081172421574593,-0.059314303100109,-0.119312129914761,0.065836548805237,-0.102412112057209,-0.080486133694649,0.113024622201920,-0.044633194804192,0.057312339544296,0.049479681998491,-0.206999346613884,0.054200496524572,-0.167312130331993,0.036326788365841) * MODEL3_texOff(vec2(0,-1));
res += mat4(-0.074318327009678,-0.019833808764815,-0.038105085492134,0.052904520183802,-0.525138795375824,-0.172589406371117,0.142245203256607,0.019276224076748,-0.109183371067047,0.051270645111799,-0.139326363801956,0.017350085079670,-0.284292131662369,0.000565907801501,-0.145108684897423,0.123168751597404) * MODEL3_texOff(vec2(0,0));
res += mat4(-0.023947916924953,-0.202777102589607,-0.060880728065968,-0.187329143285751,-0.131536781787872,0.039694078266621,-0.093148320913315,0.052145488560200,0.006762491539121,0.070133037865162,0.066061466932297,-0.138955265283585,0.041153918951750,0.073029294610023,0.118135727941990,0.053673204034567) * MODEL3_texOff(vec2(0,1));
res += mat4(-0.189611792564392,-0.122976921498775,-0.139866307377815,0.044525675475597,-0.063190266489983,-0.045384176075459,0.158120810985565,-0.067544125020504,0.006399869453162,0.033338017761707,0.006943560205400,-0.110963322222233,-0.097618766129017,0.052258066833019,-0.008375332690775,0.031766582280397) * MODEL3_texOff(vec2(1,-1));
res += mat4(-0.154745727777481,-0.076101884245872,-0.182060942053795,-0.125490337610245,0.020061520859599,-0.089043363928795,-0.208575859665871,-0.114444419741631,-0.367928892374039,-0.100073933601379,0.038721915334463,0.177735432982445,-0.155776083469391,-0.080140419304371,-0.130682021379471,0.096078649163246) * MODEL3_texOff(vec2(1,0));
res += mat4(-0.203405067324638,-0.147887542843819,0.022026261314750,0.151115521788597,-0.074469096958637,0.051076620817184,0.172128066420555,-0.042750019580126,-0.076949030160904,-0.018571404740214,0.024690143764019,0.035527307540178,-0.148088544607162,-0.103420391678810,0.025724207982421,0.017621695995331) * MODEL3_texOff(vec2(1,1));
res += mat4(0.005434911232442,-0.051238041371107,-0.103746809065342,0.082102291285992,-0.048309277743101,-0.019378326833248,-0.234179094433784,-0.028147267177701,-0.049060564488173,0.040325004607439,0.001549994456582,0.040790628641844,-0.044376175850630,-0.008149460889399,-0.033631201833487,0.031699411571026) * MODEL4_texOff(vec2(-1,-1));
res += mat4(0.157512724399567,-0.002468050457537,-0.025979513302445,0.108345448970795,-0.075943417847157,0.071186408400536,0.092307209968567,0.152969524264336,0.134170249104500,-0.037722416222095,0.021858854219317,0.072942569851875,-0.028460811823606,0.039107140153646,-0.095533140003681,-0.137620300054550) * MODEL4_texOff(vec2(-1,0));
res += mat4(0.113956034183502,0.070776052772999,0.093177929520607,0.045431450009346,0.069547355175018,-0.001738645951264,-0.052250474691391,-0.053504366427660,0.052806980907917,0.003675344632939,-0.023625502362847,0.017007751390338,-0.100085280835629,-0.091074690222740,-0.028921985998750,0.082444049417973) * MODEL4_texOff(vec2(-1,1));
res += mat4(0.206805810332298,-0.035345923155546,-0.112669661641121,0.090991906821728,-0.239043235778809,0.006665455643088,-0.551238596439362,-0.106794774532318,-0.104328900575638,0.165158838033676,0.193755671381950,0.149955406785011,0.029887413606048,-0.011742189526558,-0.043995074927807,-0.078603722155094) * MODEL4_texOff(vec2(0,-1));
res += mat4(-0.131109490990639,-0.086213238537312,-0.403128951787949,-0.203667297959328,-0.247522041201591,-0.093095205724239,0.311111062765121,-0.127378225326538,0.023539762943983,0.155495703220367,-0.031495261937380,0.036355182528496,0.067562155425549,-0.151874542236328,-0.167972460389137,0.311962366104126) * MODEL4_texOff(vec2(0,0));
res += mat4(-0.061843812465668,0.074909411370754,0.212333545088768,-0.007225775625557,-0.071298874914646,0.049514789134264,-0.047402486205101,-0.034522183239460,-0.089433215558529,-0.045469403266907,-0.020709475502372,0.165986955165863,0.037847302854061,0.049208257347345,0.097520984709263,0.054977901279926) * MODEL4_texOff(vec2(0,1));
res += mat4(0.071794413030148,0.004670212510973,-0.234051212668419,0.011752267368138,0.054926775395870,-0.057005323469639,-0.169143497943878,-0.009249417111278,-0.023249674588442,-0.024392342194915,-0.124347828328609,0.161585807800293,-0.101257137954235,-0.096647307276726,-0.106806911528111,0.061193924397230) * MODEL4_texOff(vec2(1,-1));
res += mat4(0.167658582329750,-0.061318129301071,-0.052054796367884,-0.242420434951782,0.122660890221596,-0.009220541454852,0.030334768816829,-0.082030974328518,-0.109994135797024,-0.024150008335710,-0.021528381854296,-0.096962504088879,-0.170652583241463,0.006711337715387,-0.186570227146149,0.034419406205416) * MODEL4_texOff(vec2(1,0));
res += mat4(0.277415663003922,-0.071055129170418,0.066524140536785,0.001955167157575,0.058240331709385,0.016754243522882,-0.020843500271440,-0.059801802039146,0.035271551460028,0.050294514745474,0.048495594412088,0.161322548985481,-0.124043174088001,-0.099618002772331,0.029895775020123,-0.206617578864098) * MODEL4_texOff(vec2(1,1));
res += mat4(0.087092898786068,0.018510073423386,-0.008408937603235,0.033201489597559,0.014585367403924,-0.053648248314857,-0.050644733011723,0.002616029232740,0.063202992081642,0.024601222947240,0.056682612746954,-0.038943368941545,0.091089211404324,0.019443696364760,0.161787673830986,-0.043469417840242) * MODEL5_texOff(vec2(-1,-1));
res += mat4(0.093946635723114,-0.194466829299927,-0.106776230037212,-0.141394987702370,0.204351156949997,0.125434815883636,0.065624736249447,0.085294887423515,0.144842892885208,0.019532524049282,-0.088351555168629,0.123678326606750,0.139665767550468,-0.013006558641791,-0.020089952275157,-0.022025251761079) * MODEL5_texOff(vec2(-1,0));
res += mat4(0.026313308626413,0.018247280269861,-0.036304485052824,0.043082959949970,-0.010950077325106,0.042357299476862,0.018244700506330,-0.029463192448020,0.041719440370798,-0.013834564015269,-0.098301403224468,0.069830507040024,-0.113797709345818,0.025056866928935,0.011528126895428,0.006733884569257) * MODEL5_texOff(vec2(-1,1));
res += mat4(-0.032628819346428,-0.043056357651949,-0.099408246576786,-0.114516340196133,0.078660510480404,0.037347678095102,-0.053708598017693,-0.121792569756508,-0.117611445486546,0.084134988486767,0.314949184656143,0.054894078522921,0.028432084247470,-0.042343836277723,-0.007226119283587,0.078021064400673) * MODEL5_texOff(vec2(0,-1));
res += mat4(0.026667013764381,-0.007501628249884,0.226037472486496,-0.011699699796736,0.041093830019236,0.002479921560735,-0.093817219138145,0.179435953497887,-0.280717432498932,-0.716380119323730,-0.292863249778748,-0.371778607368469,-0.058741718530655,0.249539941549301,0.139407187700272,-0.064136996865273) * MODEL5_texOff(vec2(0,0));
res += mat4(0.240895703434944,-0.010354566387832,-0.150623604655266,-0.178478121757507,-0.186426237225533,-0.141764193773270,-0.030693631619215,0.093928903341293,-0.028620751574636,0.023802448064089,0.067643135786057,-0.063994526863098,-0.321241945028305,-0.227155253291130,-0.002645930973813,-0.138162270188332) * MODEL5_texOff(vec2(0,1));
res += mat4(0.018693231046200,0.081861346960068,0.171970471739769,0.000161516465596,-0.115374177694321,0.048999093472958,0.024243742227554,0.002632094081491,0.004708717577159,-0.104635164141655,0.058404773473740,0.066134274005890,0.048144999891520,0.011888521723449,0.049137327820063,0.012602631933987) * MODEL5_texOff(vec2(1,-1));
res += mat4(0.113382250070572,0.120102547109127,-0.002606383990496,-0.003375478088856,-0.181680575013161,-0.130547687411308,-0.215855091810226,-0.149030849337578,0.023009149357677,0.149428561329842,-0.180186927318573,-0.039258882403374,-0.367855548858643,-0.054021876305342,0.233238950371742,0.062163144350052) * MODEL5_texOff(vec2(1,0));
res += mat4(-0.132573187351227,-0.057316653430462,-0.000940663390793,-0.003640242386609,0.221970185637474,0.047766823321581,-0.013338570483029,0.040868327021599,0.049653183668852,-0.004567710682750,-0.024606026709080,-0.081694982945919,-0.042012751102448,-0.034638609737158,-0.113606899976730,-0.105755545198917) * MODEL5_texOff(vec2(1,1));
res += mat4(0.174548566341400,-0.008274025283754,0.047849167138338,0.034654352813959,0.170448139309883,0.120670571923256,-0.161804363131523,0.186052069067955,-0.028414182364941,-0.081963323056698,0.157207697629929,-0.122663378715515,-0.154362767934799,0.058139566332102,0.006992083042860,0.017032690346241) * MODEL6_texOff(vec2(-1,-1));
res += mat4(0.091095671057701,0.035146873444319,0.021125750616193,-0.039029896259308,-0.201364189386368,-0.207117542624474,-0.079290367662907,-0.200348138809204,-0.144562125205994,0.010314906947315,-0.011400776915252,0.067458257079124,-0.402224093675613,0.014284295029938,0.102867424488068,0.125762730836868) * MODEL6_texOff(vec2(-1,0));
res += mat4(0.101486876606941,0.076933957636356,0.035720456391573,-0.028293848037720,-0.252345800399780,-0.028895922005177,0.053083147853613,0.125020220875740,0.088797062635422,0.062859378755093,0.072678916156292,0.056987248361111,0.097933106124401,0.037872463464737,0.037550501525402,0.114753328263760) * MODEL6_texOff(vec2(-1,1));
res += mat4(-0.114284843206406,0.073197342455387,0.221377372741699,-0.005814391188323,-0.192058205604553,0.065367989242077,0.058650676161051,-0.049294795840979,-0.120295867323875,0.009167192503810,0.202504649758339,-0.120226018130779,-0.045985698699951,-0.058721847832203,-0.040599882602692,0.051415544003248) * MODEL6_texOff(vec2(0,-1));
res += mat4(0.041341006755829,-0.313573777675629,-0.228099599480629,-0.263734489679337,0.215585201978683,0.285850465297699,0.103859946131706,0.372867375612259,-0.029139464721084,0.079323291778564,0.024435665458441,-0.132191434502602,0.008076883852482,-0.388853818178177,-0.034108299762011,-0.385313004255295) * MODEL6_texOff(vec2(0,0));
res += mat4(0.092774607241154,-0.047414917498827,0.016252541914582,-0.014678526669741,0.168331891298294,0.055580440908670,0.086238868534565,0.156178876757622,-0.116265721619129,-0.000325826928020,0.088235162198544,-0.007863373495638,0.047840055078268,0.102019630372524,0.013942033052444,-0.013535353355110) * MODEL6_texOff(vec2(0,1));
res += mat4(-0.109447181224823,0.080491475760937,0.190143823623657,-0.002019831445068,0.200923725962639,0.134775012731552,0.000807737349533,0.024391746148467,0.159334689378738,-0.062673732638359,-0.054372604936361,-0.082339376211166,-0.029337869957089,-0.083376504480839,-0.139033451676369,-0.045575808733702) * MODEL6_texOff(vec2(1,-1));
res += mat4(-0.050738457590342,0.091210432350636,-0.144367322325706,-0.023233095183969,0.125211656093597,0.113672025501728,0.010834787040949,-0.033571694046259,-0.044139217585325,-0.113790675997734,-0.022092822939157,-0.013676333241165,0.047637645155191,-0.072587095201015,0.009898748248816,-0.361707001924515) * MODEL6_texOff(vec2(1,0));
res += mat4(0.013619778677821,-0.041790142655373,-0.031427714973688,0.013309737667441,-0.073527283966541,0.085200421512127,0.127916142344475,0.069803282618523,0.020057762041688,-0.041917424649000,-0.047462936490774,0.064019620418549,0.058963283896446,-0.006275386549532,0.021328402683139,-0.040436074137688) * MODEL6_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(-0.032962687313557,-0.002741059754044,-0.022496521472931,0.007227048743516) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 3.200 * > OUTPUT.h LUMA.h 3.200 * > *
//!COMPONENTS 4
//!BIND MODEL1
//!BIND MODEL2
//!BIND MODEL3
//!BIND MODEL4
//!BIND MODEL5
//!BIND MODEL6
//!SAVE MODEL8
//!DESC [AiUpscale_Medium_4x_Photo] mapping 4_2

vec4 hook()
{
vec4 res = vec4(-0.007230774499476,-0.165687039494514,-0.169238582253456,-0.316714107990265);
res += mat4(-0.003289940534160,0.027829552069306,0.232231870293617,0.117189422249794,0.036246486008167,-0.050204161554575,-0.039696808904409,-0.067532598972321,-0.028015766292810,0.010444965213537,-0.146731138229370,0.055358573794365,0.093521714210510,-0.042827297002077,0.037012390792370,-0.120973907411098) * MODEL1_texOff(vec2(-1,-1));
res += mat4(-0.169973254203796,0.041072636842728,0.205165073275566,-0.096610777080059,0.108211636543274,0.006158963777125,0.021053148433566,-0.020609265193343,-0.082736611366272,-0.234204679727554,-0.273957937955856,-0.250271052122116,0.124900631606579,-0.119284838438034,0.022669164463878,-0.107709191739559) * MODEL1_texOff(vec2(-1,0));
res += mat4(0.095744669437408,-0.058933466672897,0.233016103506088,0.032047368586063,0.022196106612682,0.255337923765182,-0.173375532031059,0.182138010859489,0.060868687927723,0.003343051066622,-0.011717370711267,-0.050344165414572,-0.021359853446484,-0.135695978999138,0.081273935735226,-0.053862612694502) * MODEL1_texOff(vec2(-1,1));
res += mat4(-0.163610845804214,0.008878662250936,-0.030511565506458,0.146066516637802,0.226684376597404,-0.168492078781128,0.045084860175848,-0.165877014398575,0.059636048972607,-0.040115777403116,0.058836519718170,-0.001493803458288,0.090480081737041,0.051548019051552,-0.115784645080566,-0.008971720933914) * MODEL1_texOff(vec2(0,-1));
res += mat4(0.126239120960236,0.152478232979774,-0.153258189558983,-0.173429727554321,0.080989383161068,0.048900812864304,0.067754209041595,0.300666272640228,-0.016281962394714,-0.034654472023249,-0.064358226954937,-0.120835728943348,0.065938152372837,-0.501996636390686,-0.093282990157604,0.064803868532181) * MODEL1_texOff(vec2(0,0));
res += mat4(-0.023707693442702,-0.091627337038517,-0.250401943922043,-0.115304745733738,0.090633325278759,0.237909406423569,-0.154808640480042,0.235379442572594,-0.057948578149080,0.010966006666422,0.079838730394840,-0.088168092072010,-0.197692587971687,0.066522508859634,0.059016462415457,0.374489009380341) * MODEL1_texOff(vec2(0,1));
res += mat4(-0.016398021951318,0.026427155360579,0.007423766423017,0.041459333151579,0.031638924032450,-0.084336951375008,0.100517898797989,-0.055381212383509,-0.013744355179369,-0.014414662495255,-0.043179977685213,-0.050047107040882,0.060278881341219,-0.012802840210497,-0.041809868067503,-0.042366310954094) * MODEL1_texOff(vec2(1,-1));
res += mat4(-0.119620926678181,0.120257563889027,-0.012192639522254,0.017317615449429,0.021763278171420,-0.019528487697244,0.006548642646521,-0.024246558547020,0.044396869838238,-0.060107760131359,0.005741498898715,-0.007590218912810,0.038982607424259,-0.246362730860710,0.004590173251927,-0.076134651899338) * MODEL1_texOff(vec2(1,0));
res += mat4(-0.035038914531469,-0.007711370941252,-0.006826288998127,-0.082328125834465,0.018597958609462,0.053611021488905,0.037274088710546,0.109689541161060,-0.017553022131324,0.018595837056637,-0.010432154871523,-0.049582172185183,0.034492362290621,0.051309697329998,-0.099587440490723,0.094821676611900) * MODEL1_texOff(vec2(1,1));
res += mat4(-0.076020278036594,0.113514654338360,-0.044050201773643,0.060505304485559,-0.023773998022079,-0.026677634567022,-0.037857715040445,-0.111144058406353,0.101099610328674,-0.198893204331398,0.090574622154236,-0.085516512393951,-0.012322220019996,0.038152810186148,-0.027914913371205,-0.030146967619658) * MODEL2_texOff(vec2(-1,-1));
res += mat4(-0.051724571734667,-0.208807304501534,-0.270062625408173,-0.023621743544936,-0.042828205972910,0.079961970448494,-0.188484951853752,0.172129556536674,0.015439682640135,-0.047200851142406,0.245311841368675,0.046126790344715,0.065375275909901,-0.153409764170647,-0.393296033143997,-0.134760737419128) * MODEL2_texOff(vec2(-1,0));
res += mat4(0.067288137972355,0.092232912778854,-0.018055064603686,0.122671663761139,0.041462212800980,-0.038298260420561,-0.055702369660139,0.034538991749287,0.001828709966503,-0.015169978141785,0.036872211843729,-0.157045885920525,-0.018656998872757,-0.025485454127192,-0.192525014281273,0.082151986658573) * MODEL2_texOff(vec2(-1,1));
res += mat4(0.002129414584488,0.054000321775675,-0.066140197217464,0.071790501475334,0.208755150437355,-0.103665217757225,-0.035569783300161,-0.002001724671572,-0.069084264338017,-0.005732363555580,-0.096493408083916,-0.014027325436473,-0.028758693486452,0.234911575913429,0.118344374001026,0.193631395697594) * MODEL2_texOff(vec2(0,-1));
res += mat4(0.076319456100464,-0.403278857469559,0.062048789113760,-0.129332676529884,0.025924049317837,0.192401468753815,0.028591638430953,0.249057993292809,0.036405265331268,0.037364330142736,-0.139385163784027,-0.076674811542034,-0.057754054665565,-0.290034890174866,-0.028208710253239,-0.252003848552704) * MODEL2_texOff(vec2(0,0));
res += mat4(0.120866209268570,0.095723666250706,0.072164431214333,0.123961180448532,-0.149323940277100,0.137100189924240,0.251208573579788,0.187140926718712,0.237708106637001,-0.044780332595110,-0.149727612733841,-0.211915284395218,0.083400800824165,0.088994085788727,0.124472849071026,-0.037194300442934) * MODEL2_texOff(vec2(0,1));
res += mat4(0.029986169189215,0.002054945100099,-0.001938933040947,0.007825089618564,-0.002007963368669,-0.040442008525133,0.059239253401756,0.011489318683743,0.131944954395294,-0.024705572053790,-0.041463334113359,-0.093941904604435,-0.001921306713484,0.093541465699673,-0.064010307192802,0.049856867641211) * MODEL2_texOff(vec2(1,-1));
res += mat4(0.032206661999226,0.031752258539200,-0.125638380646706,0.137363791465759,-0.007737463340163,0.040202561765909,-0.030714314430952,-0.103640548884869,0.106794826686382,-0.011485175229609,0.040372598916292,-0.167320832610130,-0.138977482914925,0.121125943958759,0.080523051321507,0.112593591213226) * MODEL2_texOff(vec2(1,0));
res += mat4(-0.040638405829668,0.088667638599873,0.005701698362827,0.084908999502659,0.011872283183038,-0.064674414694309,-0.063421353697777,-0.052136451005936,0.074591040611267,-0.115964770317078,-0.017292466014624,-0.003658467438072,0.059797417372465,-0.027377825230360,0.000028372447559,0.062889240682125) * MODEL2_texOff(vec2(1,1));
res += mat4(0.019535033032298,0.005349837709218,-0.113647654652596,0.090452767908573,0.003539536613971,-0.134695619344711,-0.065007828176022,-0.139852568507195,-0.000151455402374,-0.109324991703033,-0.071629494428635,-0.005899245385081,0.052072752267122,0.018281336873770,-0.015139227733016,0.029134634882212) * MODEL3_texOff(vec2(-1,-1));
res += mat4(-0.060436319559813,0.162575840950012,-0.030769620090723,0.011815063655376,0.036976713687181,0.205849185585976,-0.023567710071802,0.109352745115757,0.065795801579952,0.043441373854876,-0.040534585714340,-0.106673493981361,-0.130604818463326,-0.048100084066391,-0.275847405195236,0.070364825427532) * MODEL3_texOff(vec2(-1,0));
res += mat4(0.083260849118233,-0.070181503891945,0.090117670595646,-0.065022043883801,0.119739733636379,-0.131633371114731,-0.063406378030777,-0.084453985095024,0.101423330605030,-0.097729258239269,-0.017775122076273,0.014488774351776,-0.069101087749004,0.039910770952702,-0.059510990977287,-0.073961682617664) * MODEL3_texOff(vec2(-1,1));
res += mat4(-0.067446805536747,-0.282504588365555,0.039377726614475,-0.061610963195562,-0.114658705890179,-0.104074202477932,-0.030405493453145,-0.036877799779177,0.030975865200162,-0.025767995044589,-0.300629436969757,-0.061185974627733,-0.050410754978657,-0.031939025968313,-0.088563516736031,0.100314594805241) * MODEL3_texOff(vec2(0,-1));
res += mat4(-0.039297297596931,0.069662638008595,-0.238059580326080,-0.023674694821239,-0.019730703905225,0.039428718388081,0.048925478011370,-0.059305783361197,-0.060647811740637,0.031458657234907,-0.521653056144714,0.040973037481308,-0.117535598576069,-0.047098893672228,-0.206917211413383,-0.096244111657143) * MODEL3_texOff(vec2(0,0));
res += mat4(-0.122689023613930,-0.209213420748711,-0.186121627688408,-0.171127691864967,0.101395629346371,-0.134797111153603,-0.004981329664588,0.045873146504164,-0.018374737352133,0.074151277542114,-0.063458271324635,0.072282589972019,-0.049434345215559,0.076906755566597,-0.145064726471901,0.012592129409313) * MODEL3_texOff(vec2(0,1));
res += mat4(-0.094576679170132,-0.088162712752819,-0.047257117927074,-0.065000459551811,-0.078716255724430,0.009849110618234,-0.147926777601242,-0.012783792801201,-0.012569597922266,0.090177230536938,0.217447921633720,0.004714078735560,-0.072762526571751,-0.106630019843578,0.006785676814616,-0.016742397099733) * MODEL3_texOff(vec2(1,-1));
res += mat4(-0.136142238974571,-0.044558361172676,0.100498221814632,0.024632858112454,0.005396194290370,-0.118153430521488,-0.181318819522858,-0.142823383212090,-0.015565204434097,-0.033244226127863,0.250099807977676,0.035519983619452,-0.045814879238605,-0.114075854420662,0.064774453639984,-0.078636176884174) * MODEL3_texOff(vec2(1,0));
res += mat4(-0.087268970906734,0.104054711759090,0.112586118280888,-0.082109741866589,-0.057519137859344,0.042064681649208,-0.019735505804420,0.015505523420870,-0.014278052374721,0.101049110293388,0.146662086248398,0.055222097784281,-0.022157255560160,0.021933093667030,-0.002877218183130,-0.114772647619247) * MODEL3_texOff(vec2(1,1));
res += mat4(0.020613042637706,-0.060862753540277,0.178970530629158,0.053729049861431,-0.013388551771641,0.018827995285392,-0.032125871628523,0.060370296239853,0.009991179220378,-0.016085723415017,0.091718994081020,-0.049645669758320,-0.114994093775749,0.017282938584685,-0.176128193736076,0.026106564328074) * MODEL4_texOff(vec2(-1,-1));
res += mat4(-0.090753570199013,0.010566692799330,-0.012426632456481,0.023855339735746,-0.063652001321316,0.054628547281027,-0.071323066949844,-0.145900383591652,0.118258915841579,-0.098921805620193,0.226468622684479,-0.033433150500059,-0.109848529100418,0.073659121990204,-0.119001120328903,0.067618124186993) * MODEL4_texOff(vec2(-1,0));
res += mat4(-0.088152229785919,0.066871263086796,0.019913276657462,0.059415649622679,0.035697299987078,-0.081432074308395,-0.082820512354374,-0.004257549066097,-0.081923715770245,0.085805892944336,0.060310147702694,0.088000111281872,-0.076581053435802,0.022079272195697,-0.028152143582702,0.044732656329870) * MODEL4_texOff(vec2(-1,1));
res += mat4(0.023482495918870,-0.020874114707112,-0.057827800512314,0.203479722142220,-0.060219328850508,0.161294624209404,0.195868715643883,0.218175336718559,0.096479162573814,0.158801555633545,0.078851029276848,0.027781646698713,-0.069846846163273,-0.188855260610580,-0.045607399195433,-0.061642274260521) * MODEL4_texOff(vec2(0,-1));
res += mat4(-0.145496189594269,-0.122717663645744,-0.182279214262962,-0.156751573085785,-0.114525608718395,0.251574039459229,0.166184440255165,-0.458878576755524,-0.128898113965988,0.053182702511549,0.557597219944000,-0.026671160012484,0.025977101176977,0.095506556332111,-0.168382972478867,0.385770499706268) * MODEL4_texOff(vec2(0,0));
res += mat4(-0.110020600259304,0.115021765232086,-0.110688224434853,-0.370083153247833,-0.000614995369688,0.025907505303621,-0.029200948774815,0.036385495215654,0.083168946206570,-0.016853854060173,0.015127941034734,-0.039938844740391,-0.182760059833527,0.177005156874657,-0.140535220503807,0.308878183364868) * MODEL4_texOff(vec2(0,1));
res += mat4(-0.049176864326000,-0.080848976969719,0.104757368564606,0.117196731269360,0.012527285143733,-0.003857776289806,-0.023891029879451,0.017094949260354,-0.188204482197762,-0.044823523610830,-0.123968601226807,0.027441173791885,-0.013714167289436,-0.039245884865522,-0.023198319599032,-0.088197313249111) * MODEL4_texOff(vec2(1,-1));
res += mat4(-0.020493434742093,-0.113322541117668,0.066816218197346,-0.162346765398979,0.006473736371845,0.026318058371544,0.029164791107178,-0.141791284084320,0.263639211654663,-0.091264612972736,0.005415142513812,0.045543290674686,-0.104411594569683,-0.059049952775240,0.072136387228966,0.189385533332825) * MODEL4_texOff(vec2(1,0));
res += mat4(-0.049032073467970,0.035319194197655,0.083203226327896,-0.186662420630455,-0.018123541027308,-0.010712553746998,-0.047824591398239,0.022843057289720,-0.102394476532936,0.044460546225309,0.045120958238840,-0.052004963159561,-0.030760949477553,0.029965082183480,-0.006182703655213,0.016719596460462) * MODEL4_texOff(vec2(1,1));
res += mat4(-0.005671164952219,0.046316731721163,0.220537394285202,-0.029536535963416,-0.058763209730387,0.056355047971010,-0.171703845262527,0.079360485076904,-0.058066282421350,0.010047432035208,0.040745113044977,-0.069412060081959,-0.001848597195931,0.193384110927582,0.031882513314486,0.090648904442787) * MODEL5_texOff(vec2(-1,-1));
res += mat4(0.083335071802139,-0.039425775408745,0.461493492126465,-0.441775113344193,-0.018297668546438,-0.042956862598658,-0.311318695545197,-0.038084644824266,-0.133216783404350,-0.183349266648293,0.083634033799171,0.006037798244506,0.108181960880756,0.201767727732658,-0.236621424555779,0.228619128465652) * MODEL5_texOff(vec2(-1,0));
res += mat4(-0.029112551361322,-0.055474571883678,0.262310296297073,-0.085169889032841,0.019998034462333,0.013957177288830,-0.078189760446548,-0.059469092637300,-0.014357299543917,-0.032357305288315,0.028686091303825,-0.090620674192905,-0.036157622933388,0.110144674777985,-0.184936136007309,0.059354033321142) * MODEL5_texOff(vec2(-1,1));
res += mat4(0.047325406223536,0.055588271468878,-0.088922291994095,0.032978709787130,-0.001760162878782,-0.207047581672668,0.026949955150485,-0.075475119054317,-0.075724363327026,0.081999965012074,0.022503985092044,-0.204507425427437,0.008009238168597,0.190171435475349,-0.005221480038017,0.140958517789841) * MODEL5_texOff(vec2(0,-1));
res += mat4(0.092641077935696,0.317501544952393,-0.056396283209324,-0.006829562131315,-0.161682456731796,-0.093683741986752,0.365913629531860,0.006453829351813,-0.006033946759999,-0.832635819911957,0.186941161751747,-0.457469612360001,-0.064524985849857,0.296076953411102,-0.254934370517731,0.059073992073536) * MODEL5_texOff(vec2(0,0));
res += mat4(0.017827508971095,-0.084115684032440,-0.108524553477764,-0.194471031427383,0.009095317684114,-0.080664679408073,0.119867920875549,-0.065463624894619,-0.032835811376572,-0.009520795196295,-0.114551290869713,-0.292781919240952,0.085310563445091,0.014775012619793,-0.057123314589262,0.151176840066910) * MODEL5_texOff(vec2(0,1));
res += mat4(0.067259937524796,0.096243351697922,0.028882090002298,0.045403905212879,-0.108241565525532,-0.035721935331821,-0.017238799482584,-0.064966656267643,0.012617828324437,0.055689498782158,0.041752796620131,-0.003929524682462,0.001607509679161,0.075529120862484,0.072972662746906,0.096851572394371) * MODEL5_texOff(vec2(1,-1));
res += mat4(-0.092435203492641,0.157720491290092,-0.045020818710327,0.092774510383606,-0.023792549967766,-0.289153784513474,0.149590536952019,-0.139840722084045,-0.051255360245705,-0.240357890725136,-0.068319559097290,-0.054591268301010,-0.057930644601583,0.380956977605820,0.003401421708986,0.270553916692734) * MODEL5_texOff(vec2(1,0));
res += mat4(0.012375055812299,0.004999604541808,-0.000549266871531,-0.020437154918909,0.054796967655420,-0.008314388804138,0.026462472975254,0.035413708537817,0.027789374813437,-0.105005398392677,-0.062448844313622,-0.199213325977325,0.013299773447216,-0.089211992919445,-0.103009268641472,-0.050337828695774) * MODEL5_texOff(vec2(1,1));
res += mat4(-0.051943659782410,0.071781471371651,-0.058716427534819,0.128092855215073,0.058246061205864,-0.130204185843468,-0.084382690489292,0.040317784994841,0.066904991865158,0.007760445121676,0.128298938274384,0.040743008255959,-0.119864746928215,0.086780145764351,-0.072204008698463,0.091948039829731) * MODEL6_texOff(vec2(-1,-1));
res += mat4(-0.060964506119490,0.051092557609081,-0.096952468156815,-0.155466213822365,-0.285703927278519,-0.207524344325066,-0.058285415172577,-0.069613702595234,0.076828680932522,0.177580565214157,0.213577657938004,0.201243951916695,0.033014267683029,-0.096546880900860,0.060071960091591,-0.112512566149235) * MODEL6_texOff(vec2(-1,0));
res += mat4(-0.071275644004345,-0.000323508807924,0.032830320298672,-0.048949416726828,-0.048538722097874,0.076963268220425,-0.026791755110025,-0.060138307511806,0.017532788217068,0.166144296526909,0.113506093621254,0.124640017747879,-0.013195655308664,0.145452171564102,-0.018464827910066,0.086288601160049) * MODEL6_texOff(vec2(-1,1));
res += mat4(-0.495920300483704,0.000056796365243,0.029483942314982,0.122566320002079,-0.010498535819352,-0.225564226508141,0.151550218462944,0.024475848302245,-0.024157200008631,-0.233617931604385,0.050998553633690,0.008620819076896,-0.046789258718491,0.134592026472092,-0.083467364311218,0.110643096268177) * MODEL6_texOff(vec2(0,-1));
res += mat4(0.380144298076630,-0.236616939306259,-0.075660862028599,-0.343481570482254,-0.083402551710606,0.062446393072605,0.244003698229790,0.145135894417763,-0.300793647766113,-0.003387003671378,-0.071061238646507,0.066675193607807,0.104704543948174,-0.179583489894867,-0.109464503824711,-0.135367378592491) * MODEL6_texOff(vec2(0,0));
res += mat4(-0.036441985517740,-0.084775753319263,0.002745653502643,-0.100545473396778,0.066380023956299,0.081385463476181,0.096201345324516,-0.168392106890678,0.126475542783737,-0.010511339642107,-0.040804810822010,-0.123298957943916,-0.051224634051323,0.079685784876347,-0.085670381784439,0.070870719850063) * MODEL6_texOff(vec2(0,1));
res += mat4(-0.145866721868515,0.022009983658791,0.010943434201181,0.057941939681768,0.046668082475662,-0.024822374805808,0.038641054183245,0.093321792781353,0.013396246358752,-0.230978831648827,0.073960073292255,-0.068393029272556,0.046474490314722,0.035611290484667,-0.036307696253061,0.028908405452967) * MODEL6_texOff(vec2(1,-1));
res += mat4(-0.058533165603876,-0.131240844726563,0.104224078357220,-0.141940236091614,-0.036771066486835,0.005339689552784,-0.010772020556033,-0.055569056421518,0.023435581475496,-0.050365868955851,0.080730512738228,0.036539442837238,-0.091842800378799,-0.100596040487289,-0.099333696067333,-0.210787728428841) * MODEL6_texOff(vec2(1,0));
res += mat4(0.105216324329376,-0.066627137362957,0.028904821723700,-0.081617198884487,0.024311382323503,0.083475388586521,-0.004454651847482,0.061926949769258,0.006308828480542,-0.052326381206512,0.098407998681068,-0.096246078610420,0.041898068040609,-0.020888967439532,-0.015182841569185,-0.137689739465714) * MODEL6_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(0.421588540077209,-0.014307493343949,0.003447907976806,0.007792962249368) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 3.200 * > OUTPUT.h LUMA.h 3.200 * > *
//!COMPONENTS 4
//!BIND MODEL1
//!BIND MODEL2
//!BIND MODEL3
//!BIND MODEL4
//!BIND MODEL5
//!BIND MODEL6
//!SAVE MODEL9
//!DESC [AiUpscale_Medium_4x_Photo] mapping 4_3

vec4 hook()
{
vec4 res = vec4(-0.103391095995903,-0.203216969966888,-0.145070090889931,-0.158068045973778);
res += mat4(0.054639708250761,-0.013446400873363,-0.094018943607807,0.003391965292394,0.093538507819176,-0.081592336297035,0.011673264205456,0.056587912142277,0.015684138983488,-0.049275949597359,-0.229370281100273,-0.096755854785442,-0.148397400975227,0.103573754429817,0.019744969904423,-0.021239925175905) * MODEL1_texOff(vec2(-1,-1));
res += mat4(0.022614678367972,-0.015049302019179,0.138259261846542,-0.046483114361763,-0.044951234012842,0.040015809237957,0.059648081660271,-0.064404480159283,-0.183384865522385,-0.070006921887398,0.025208843871951,-0.095724739134312,-0.098058991134167,0.021027687937021,-0.209169402718544,-0.074314601719379) * MODEL1_texOff(vec2(-1,0));
res += mat4(-0.061381321400404,-0.017453454434872,-0.022740567103028,-0.083353608846664,-0.071442395448685,0.051414426416159,-0.098753377795219,0.008351949974895,-0.000529010547325,0.079643882811069,-0.093063883483410,-0.060102645307779,0.073009185492992,0.026047304272652,0.068029947578907,0.022166803479195) * MODEL1_texOff(vec2(-1,1));
res += mat4(-0.061244867742062,0.173207774758339,0.009136713109910,0.082808852195740,-0.021591724827886,0.099699392914772,0.012163590639830,-0.095507085323334,-0.215414956212044,0.093287639319897,-0.126602530479431,-0.009952577762306,0.073129616677761,0.117138750851154,-0.019745295867324,-0.091029025614262) * MODEL1_texOff(vec2(0,-1));
res += mat4(-0.214886456727982,0.151170536875725,-0.015600137412548,-0.203508600592613,0.084473624825478,-0.062103740870953,-0.071477711200714,0.199956223368645,-0.282911211252213,0.271089494228363,0.163411647081375,-0.162149995565414,0.116666264832020,-0.221072480082512,0.240208476781845,0.085787378251553) * MODEL1_texOff(vec2(0,0));
res += mat4(0.099868863821030,-0.037280932068825,-0.138438701629639,0.048295699059963,0.011630075983703,-0.048514984548092,-0.099193535745144,-0.061335358768702,0.080814070999622,0.105594545602798,-0.014122621156275,-0.028199935331941,-0.204362124204636,0.079791530966759,-0.037183593958616,0.057958271354437) * MODEL1_texOff(vec2(0,1));
res += mat4(-0.062744893133640,0.071780122816563,-0.151612758636475,0.001023313147016,-0.092970319092274,-0.062982939183712,0.103420577943325,0.106307841837406,0.020930802449584,-0.045099239796400,-0.030546993017197,0.002053028671071,-0.061314135789871,-0.070666566491127,-0.174751386046410,-0.002311777323484) * MODEL1_texOff(vec2(1,-1));
res += mat4(0.001924249343574,0.008606506511569,-0.113216236233711,-0.069567896425724,0.072123989462852,0.015190566889942,-0.090955801308155,0.011241835542023,0.209697365760803,0.092692375183105,0.089638218283653,-0.005848191212863,-0.141926094889641,0.072444185614586,-0.079378321766853,0.015136677771807) * MODEL1_texOff(vec2(1,0));
res += mat4(-0.162586584687233,-0.022906959056854,-0.070299178361893,-0.103072598576546,0.142641842365265,-0.039519146084785,0.006367455702275,0.086317263543606,0.010698997415602,0.027617413550615,-0.043567709624767,-0.079735755920410,-0.001841864315793,-0.104325428605080,0.114784792065620,-0.015522044152021) * MODEL1_texOff(vec2(1,1));
res += mat4(0.031722355633974,0.011785881593823,0.027537457644939,0.017169876024127,0.001853598165326,-0.049376752227545,0.081013068556786,0.097293242812157,-0.104668542742729,-0.031462099403143,0.155197978019714,0.044790741056204,-0.099474862217903,-0.044361263513565,-0.078549310564995,0.020934877917171) * MODEL2_texOff(vec2(-1,-1));
res += mat4(0.028654210269451,-0.259636640548706,-0.146493047475815,-0.117013484239578,0.024689026176929,-0.030384488403797,-0.109174378216267,0.067004367709160,-0.089689359068871,0.051151417195797,0.062740594148636,0.090878911316395,0.056825947016478,-0.209465116262436,0.074265323579311,-0.066451281309128) * MODEL2_texOff(vec2(-1,0));
res += mat4(-0.001187663874589,0.015119456686080,0.038223668932915,0.137170135974884,0.044805571436882,-0.037567723542452,0.087652489542961,0.023499552160501,-0.054168201982975,0.002549803117290,-0.117890127003193,0.038909114897251,-0.001778488280252,0.009968303143978,0.002830248093233,0.060687877237797) * MODEL2_texOff(vec2(-1,1));
res += mat4(-0.157969877123833,-0.122446797788143,-0.278117895126343,-0.115612469613552,-0.028254207223654,-0.134460836648941,-0.001612820778973,-0.001573455519974,0.048243172466755,-0.058190051466227,0.087395980954170,-0.067351713776588,0.049101006239653,0.059556920081377,0.168631151318550,0.126714766025543) * MODEL2_texOff(vec2(0,-1));
res += mat4(-0.128879249095917,-0.017244094982743,0.105565287172794,0.056457515805960,-0.237722769379616,0.143907412886620,0.381562381982803,0.303452253341675,0.010475980117917,-0.111446559429169,0.122296929359436,0.210265114903450,-0.291265964508057,-0.441428691148758,-0.502065002918243,-0.571802318096161) * MODEL2_texOff(vec2(0,0));
res += mat4(0.087982662022114,0.007791535463184,0.103952676057816,0.009786725044250,-0.121420308947563,-0.022876979783177,0.116209492087364,-0.039230559021235,0.077072590589523,-0.030414503067732,0.020469630137086,-0.031279347836971,-0.258106887340546,0.041615117341280,-0.008212105371058,-0.261830061674118) * MODEL2_texOff(vec2(0,1));
res += mat4(-0.028686938807368,0.043025963008404,0.147261917591095,0.006214410532266,-0.033703662455082,0.000157049580594,0.051221571862698,0.057710364460945,-0.077503524720669,-0.109147913753986,0.014060188084841,-0.060203038156033,0.185759246349335,0.065632842481136,-0.093688637018204,-0.106727950274944) * MODEL2_texOff(vec2(1,-1));
res += mat4(-0.039492469280958,-0.050520058721304,-0.014788506552577,-0.156745061278343,-0.021510362625122,-0.072062537074089,0.057878099381924,-0.198781833052635,-0.220430582761765,0.064549371600151,-0.017771713435650,0.126978054642677,-0.024911304935813,0.227685153484344,0.185282066464424,0.103083059191704) * MODEL2_texOff(vec2(1,0));
res += mat4(-0.049523461610079,0.117453500628471,-0.074107162654400,0.010089847259223,-0.054321955889463,-0.109069623053074,0.054630916565657,0.214112877845764,0.010803619399667,-0.055711962282658,0.046955775469542,0.167794138193130,0.115910582244396,-0.048513658344746,0.059920467436314,-0.003013405250385) * MODEL2_texOff(vec2(1,1));
res += mat4(-0.011293867602944,-0.108276806771755,-0.029030222445726,0.002282548462972,-0.046308107674122,-0.088294453918934,0.074695728719234,0.014090885408223,-0.012712433934212,-0.184125736355782,0.098089918494225,0.029367649927735,0.019049743190408,0.089320287108421,0.044939272105694,-0.033105723559856) * MODEL3_texOff(vec2(-1,-1));
res += mat4(0.097615137696266,0.083140894770622,0.028531461954117,-0.109635718166828,0.106564052402973,-0.141551539301872,-0.097985766828060,0.087592706084251,-0.115694418549538,0.098268404603004,-0.135063320398331,-0.230159491300583,0.092892289161682,-0.074244290590286,-0.135212823748589,0.176813170313835) * MODEL3_texOff(vec2(-1,0));
res += mat4(-0.074027284979820,0.144352629780769,0.103493213653564,-0.136623725295067,0.085296049714088,-0.079268708825111,0.055216964334249,0.018879175186157,0.004535885993391,-0.007922954857349,0.073895022273064,0.108366131782532,0.174401596188545,-0.011292453855276,0.000922112085391,0.119721040129662) * MODEL3_texOff(vec2(-1,1));
res += mat4(0.161169350147247,0.120789878070354,-0.089633911848068,0.020926784723997,0.024513283744454,-0.106089241802692,-0.158126220107079,0.064041651785374,-0.189603358507156,0.095901630818844,-0.153833940625191,-0.123260408639908,0.106076553463936,-0.107865840196609,-0.019000474363565,0.118338122963905) * MODEL3_texOff(vec2(0,-1));
res += mat4(-0.259468853473663,-0.213553026318550,-0.005870947614312,-0.010011398233473,-0.101014293730259,0.075595870614052,-0.041848391294479,-0.152382060885429,0.049990072846413,-0.324937164783478,-0.082528471946716,0.027339044958353,-0.246259376406670,0.112288169562817,0.037716627120972,-0.070627503097057) * MODEL3_texOff(vec2(0,0));
res += mat4(0.229190319776535,-0.095876291394234,-0.153141811490059,-0.014936791732907,-0.023291368037462,0.020264588296413,-0.082025073468685,0.164185762405396,-0.145409852266312,0.010373228229582,-0.036420136690140,-0.047624938189983,-0.011325879953802,0.110553227365017,0.116630882024765,-0.085893541574478) * MODEL3_texOff(vec2(0,1));
res += mat4(0.008181489072740,-0.076402582228184,-0.195446923375130,-0.063431292772293,0.009182528592646,-0.181394085288048,-0.035964876413345,-0.147530525922775,-0.113852746784687,-0.023669347167015,-0.113339230418205,0.072489090263844,0.039372701197863,0.069064602255821,0.045408751815557,-0.060299769043922) * MODEL3_texOff(vec2(1,-1));
res += mat4(0.131877079606056,0.047210525721312,-0.176075935363770,0.015713382512331,-0.101327314972878,-0.088102452456951,-0.076096311211586,0.029345804825425,-0.082914546132088,0.303601711988449,0.212084978818893,-0.106002427637577,0.021139698103070,0.080966800451279,0.052679065614939,-0.008438318967819) * MODEL3_texOff(vec2(1,0));
res += mat4(-0.160975694656372,0.153986692428589,-0.091546736657619,-0.166239798069000,-0.178490161895752,0.029611151665449,-0.000559734005947,-0.123115085065365,0.044211644679308,-0.044282343238592,-0.013512481004000,-0.022324379533529,-0.028732940554619,-0.071601614356041,0.028535485267639,-0.116528302431107) * MODEL3_texOff(vec2(1,1));
res += mat4(0.036361411213875,0.129564389586449,0.167610272765160,-0.073431350290775,0.065178282558918,0.048434883356094,0.116999983787537,-0.026235045865178,0.034048356115818,0.029743142426014,0.032518457621336,0.003217940684408,-0.043972223997116,-0.032076388597488,0.004910713993013,0.008384520187974) * MODEL4_texOff(vec2(-1,-1));
res += mat4(0.013097585178912,0.038855433464050,0.000888398266397,-0.010176076553762,-0.009520095773041,0.063886687159538,0.135093972086906,0.101779803633690,-0.023380063474178,0.102011054754257,0.123974792659283,0.028073195368052,0.019869411364198,-0.010007165372372,0.021093787625432,-0.017646472901106) * MODEL4_texOff(vec2(-1,0));
res += mat4(0.054673742502928,0.043270111083984,0.076127141714096,0.078162997961044,0.020590366795659,-0.054342046380043,-0.096633307635784,0.007860841229558,0.021135170012712,0.078010186553001,0.003429168369621,-0.026794685050845,0.092790968716145,0.026894617825747,-0.025619545951486,-0.038891643285751) * MODEL4_texOff(vec2(-1,1));
res += mat4(0.137326046824455,-0.113551460206509,0.009424800984561,0.072340376675129,0.040157347917557,-0.387430697679520,-0.234837770462036,0.089272834360600,-0.020309640094638,0.127930909395218,0.037677761167288,0.086564548313618,0.188826084136963,0.209888502955437,-0.019621293991804,-0.063132949173450) * MODEL4_texOff(vec2(0,-1));
res += mat4(-0.044627681374550,-0.093896985054016,0.141888082027435,-0.021501792594790,-0.118053041398525,0.108646184206009,-0.376545965671539,-0.410869807004929,0.223270609974861,0.397552877664566,0.059728052467108,0.094515107572079,-0.018641412258148,-0.067784450948238,-0.199554175138474,0.004169922787696) * MODEL4_texOff(vec2(0,0));
res += mat4(-0.018062364310026,0.013877476565540,0.131034716963768,-0.293557643890381,0.092084534466267,0.017139881849289,0.047685623168945,0.084990695118904,0.184317350387573,0.110681816935539,-0.012781689874828,-0.005579136312008,-0.060932371765375,-0.007703027222306,-0.073788553476334,-0.031655691564083) * MODEL4_texOff(vec2(0,1));
res += mat4(-0.071517430245876,-0.008711060509086,-0.047843325883150,0.099853903055191,0.026648098602891,-0.084548585116863,0.046173419803381,-0.029702039435506,0.068283177912235,0.227540180087090,-0.237780243158340,0.025060711428523,0.064437083899975,0.069704294204712,-0.012487389147282,-0.082547716796398) * MODEL4_texOff(vec2(1,-1));
res += mat4(-0.050043229013681,-0.216044679284096,-0.099543377757072,-0.092757895588875,0.056716382503510,-0.001126754097641,-0.082601152360439,0.055828467011452,0.271852076053619,-0.178642645478249,-0.174640282988548,0.011128530837595,0.012446435168386,-0.127978861331940,-0.008265209384263,-0.029536794871092) * MODEL4_texOff(vec2(1,0));
res += mat4(-0.312784284353256,0.033943105489016,-0.000011467619515,-0.045712057501078,0.011263350956142,-0.107363656163216,-0.011872005648911,-0.027565725147724,-0.216470614075661,0.092446930706501,-0.045850045979023,0.055567920207977,0.154075190424919,-0.157079577445984,-0.127037972211838,-0.150813028216362) * MODEL4_texOff(vec2(1,1));
res += mat4(0.006349722389132,-0.128680601716042,0.077438406646252,0.101024910807610,0.011004212312400,0.013020941056311,-0.013935468159616,0.019216883927584,0.139849066734314,0.040638249367476,0.034266334027052,-0.022400844842196,0.064444668591022,-0.077776722609997,-0.074966102838516,-0.019729247316718) * MODEL5_texOff(vec2(-1,-1));
res += mat4(-0.085187681019306,-0.031389828771353,-0.050073400139809,-0.256773144006729,-0.003349730279297,-0.082050517201424,-0.176440164446831,0.000694834219757,0.042463593184948,0.150834888219833,0.070029519498348,-0.046585861593485,0.038320776075125,0.008766987361014,-0.015970528125763,0.130029812455177) * MODEL5_texOff(vec2(-1,0));
res += mat4(0.102582603693008,-0.020934067666531,0.003981300629675,-0.049300946295261,-0.010378818958998,0.038214527070522,0.047754932194948,0.095225833356380,-0.030433813109994,0.035988725721836,0.010188057087362,-0.003653203137219,0.056785248219967,-0.071962632238865,-0.047477114945650,-0.078471012413502) * MODEL5_texOff(vec2(-1,1));
res += mat4(-0.137639671564102,-0.083771564066410,0.101961836218834,-0.021708607673645,-0.073535487055779,-0.192716270685196,0.025907883420587,-0.003794809570536,0.040313109755516,0.102899163961411,0.015753785148263,-0.099870011210442,0.002177289919928,-0.099693834781647,-0.003058022819459,0.076465144753456) * MODEL5_texOff(vec2(0,-1));
res += mat4(0.058561727404594,-0.193392351269722,-0.184703081846237,-0.048448570072651,-0.150416627526283,0.364283591508865,0.086800679564476,0.235556051135063,0.208385601639748,-0.318495541810989,-0.250506669282913,-0.020269526168704,0.004121325444430,0.000060440353991,-0.289328306913376,-0.024912772700191) * MODEL5_texOff(vec2(0,0));
res += mat4(0.086980134248734,-0.036676693707705,0.133958563208580,0.041753739118576,0.037243183702230,-0.061929851770401,0.069949373602867,-0.213367819786072,-0.122571654617786,0.030661864206195,-0.067041017115116,-0.080812528729439,-0.032866504043341,-0.099710486829281,-0.115616030991077,-0.128023281693459) * MODEL5_texOff(vec2(0,1));
res += mat4(-0.035592678934336,0.073592573404312,0.109934136271477,0.025539914146066,-0.020332764834166,-0.003788278903812,-0.102792970836163,-0.072183296084404,-0.116061769425869,0.004177734721452,0.012853739783168,0.081551320850849,0.115166820585728,0.054342526942492,-0.153531119227409,-0.022832844406366) * MODEL5_texOff(vec2(1,-1));
res += mat4(-0.101674623787403,-0.074339628219604,-0.085229694843292,0.169731199741364,0.069156758487225,-0.032674670219421,0.196570053696632,-0.053774803876877,0.052986904978752,0.000245030096266,-0.071085505187511,0.186477795243263,0.055666297674179,0.081654958426952,-0.040931306779385,0.050780609250069) * MODEL5_texOff(vec2(1,0));
res += mat4(-0.039940338581800,-0.021672621369362,0.100466400384903,-0.131363809108734,-0.142869666218758,0.000060757571191,0.050854418426752,0.142499595880508,-0.042531255632639,-0.094105795025826,0.108289822936058,-0.037328802049160,-0.010158039629459,-0.085686273872852,0.035424876958132,-0.020351748913527) * MODEL5_texOff(vec2(1,1));
res += mat4(-0.041491955518723,-0.041437886655331,-0.092146977782249,0.079343549907207,-0.048499580472708,0.161742672324181,0.070765770971775,0.115583971142769,0.052909687161446,-0.081344082951546,0.009900700300932,-0.060154341161251,0.078117012977600,-0.034119226038456,-0.054098103195429,0.061703402549028) * MODEL6_texOff(vec2(-1,-1));
res += mat4(0.049660466611385,-0.042253024876118,-0.068562932312489,-0.042283866554499,0.000068837449362,-0.085843160748482,-0.150651797652245,-0.045862000435591,-0.221197262406349,-0.012631949968636,-0.066796422004700,-0.036138646304607,0.037058085203171,0.329338312149048,0.309665083885193,-0.004621261265129) * MODEL6_texOff(vec2(-1,0));
res += mat4(0.010386117734015,-0.017079249024391,-0.040951516479254,0.041207492351532,0.073721706867218,0.125976040959358,-0.070367433130741,-0.030295381322503,-0.111658640205860,0.005065488629043,0.055156469345093,0.036645505577326,-0.014598838984966,0.062707349658012,0.094952814280987,-0.058920595794916) * MODEL6_texOff(vec2(-1,1));
res += mat4(-0.013740602880716,-0.151697859168053,0.060883875936270,0.111536577343941,0.134636312723160,0.116300061345100,0.158653184771538,0.100479662418365,-0.135070577263832,-0.273408979177475,-0.224327504634857,-0.011028110980988,-0.028583711013198,-0.074010968208313,-0.018938070163131,0.070534385740757) * MODEL6_texOff(vec2(0,-1));
res += mat4(0.301385134458542,-0.121809706091881,0.045056503266096,-0.144493430852890,-0.323548555374146,0.130787953734398,0.159298986196518,0.051223829388618,-0.047266941517591,-0.045886822044849,-0.102454960346222,-0.000252571975579,0.192216292023659,-0.309867769479752,-0.131946176290512,-0.316651105880737) * MODEL6_texOff(vec2(0,0));
res += mat4(-0.062687732279301,0.010693863965571,-0.031053012236953,-0.028896592557430,0.177079036831856,0.108816444873810,-0.001036959583871,0.102348253130913,0.001970523269847,-0.075811818242073,0.001221856218763,-0.075636200606823,-0.001325161079876,0.124714404344559,-0.136369809508324,0.127667412161827) * MODEL6_texOff(vec2(0,1));
res += mat4(0.131500050425529,0.087085917592049,0.036936700344086,0.039782218635082,-0.000388626183849,0.008681180886924,0.042526405304670,0.086052112281322,-0.130154564976692,-0.079077795147896,-0.084618434309959,0.009925934486091,-0.069110706448555,-0.121751211583614,-0.124899752438068,0.023797519505024) * MODEL6_texOff(vec2(1,-1));
res += mat4(-0.165098801255226,0.023959893733263,0.140103131532669,0.067111834883690,0.220261499285698,0.034395989030600,0.085749544203281,0.090545020997524,-0.114918656647205,-0.010666236281395,-0.146209627389908,0.041834712028503,0.024894578382373,-0.006023210007697,-0.069271169602871,-0.021486889570951) * MODEL6_texOff(vec2(1,0));
res += mat4(-0.052282836288214,0.026553340256214,0.080197036266327,-0.091435119509697,0.060173634439707,0.030862549319863,0.104329824447632,0.131199955940247,-0.010651620104909,0.111016824841499,-0.113097697496414,-0.039374664425850,0.062950834631920,-0.067180916666985,0.042185865342617,-0.242753058671951) * MODEL6_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(0.005601096432656,0.020625751465559,-0.006994503550231,0.001543213496916) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 3.200 * > OUTPUT.h LUMA.h 3.200 * > *
//!COMPONENTS 4
//!BIND MODEL1
//!BIND MODEL2
//!BIND MODEL3
//!BIND MODEL4
//!BIND MODEL5
//!BIND MODEL6
//!SAVE MODEL10
//!DESC [AiUpscale_Medium_4x_Photo] mapping 4_4

vec4 hook()
{
vec4 res = vec4(-0.176917955279350,-0.288013964891434,-0.157678425312042,-0.025435503572226);
res += mat4(0.117728836834431,-0.058006513863802,0.025628803297877,-0.002800248097628,-0.011847480200231,0.008347168564796,0.105503268539906,-0.006184027064592,0.038565147668123,0.020528810098767,-0.045088775455952,0.055245611816645,-0.152025654911995,0.057833231985569,-0.220973625779152,-0.027476735413074) * MODEL1_texOff(vec2(-1,-1));
res += mat4(-0.181537881493568,-0.095778100192547,0.041091233491898,-0.004006708506495,-0.022061392664909,0.054818131029606,-0.204823911190033,-0.008870560675859,-0.136145785450935,0.109935097396374,-0.166620746254921,-0.191238045692444,0.026030490174890,-0.077600978314877,0.075680583715439,-0.144511938095093) * MODEL1_texOff(vec2(-1,0));
res += mat4(0.046051166951656,-0.073986865580082,-0.023047277703881,0.054957695305347,-0.122760005295277,-0.025171913206577,-0.070082217454910,0.098704248666763,-0.051224187016487,-0.090895257890224,0.064698845148087,0.025898694992065,0.170934289693832,-0.018139339983463,0.048378977924585,-0.044495318084955) * MODEL1_texOff(vec2(-1,1));
res += mat4(0.137048810720444,-0.011694234795868,0.361381560564041,-0.097139120101929,-0.121721222996712,0.016775803640485,-0.029119214043021,0.279271811246872,0.060763228684664,-0.044636603444815,0.052197616547346,-0.110273234546185,0.046927131712437,-0.054975725710392,0.029143700376153,-0.039193887263536) * MODEL1_texOff(vec2(0,-1));
res += mat4(-0.147462531924248,-0.124291606247425,0.221723392605782,0.030546050518751,0.035035386681557,-0.022430798038840,-0.009951307438314,-0.112575590610504,-0.092379570007324,0.173540949821472,0.096383757889271,0.139940753579140,-0.028290830552578,-0.021717324852943,0.125731423497200,-0.235972717404366) * MODEL1_texOff(vec2(0,0));
res += mat4(-0.094298608601093,-0.064901910722256,0.222939476370811,0.089404016733170,-0.223187685012817,-0.031105265021324,-0.057710047811270,0.686252593994141,-0.214558020234108,0.095165394246578,0.085008919239044,-0.076828382909298,0.338207364082336,0.019442798569798,0.038271185010672,0.150934815406799) * MODEL1_texOff(vec2(0,1));
res += mat4(0.093914911150932,0.058179736137390,0.004342739935964,-0.015225131064653,-0.056821357458830,0.079810589551926,-0.046707410365343,0.000105471168354,-0.030541637912393,-0.074109494686127,0.083394423127174,0.045673705637455,-0.108453907072544,-0.168611437082291,0.090350210666656,0.024757914245129) * MODEL1_texOff(vec2(1,-1));
res += mat4(-0.072684824466705,0.104703977704048,-0.006736976094544,-0.098170757293701,-0.014706724323332,0.057125952094793,-0.068556189537048,0.079386301338673,0.081879459321499,-0.186887130141258,0.015066901221871,-0.084327906370163,-0.018443528562784,-0.062673985958099,-0.025270767509937,-0.113067969679832) * MODEL1_texOff(vec2(1,0));
res += mat4(-0.027339491993189,0.014292155392468,0.185583725571632,0.004355735145509,-0.021960787475109,-0.006573146209121,-0.129758387804031,0.136303097009659,-0.063943244516850,-0.131693735718727,0.047370146960020,0.056075930595398,0.099062010645866,-0.006606988143176,0.204384744167328,-0.012634610757232) * MODEL1_texOff(vec2(1,1));
res += mat4(-0.160981789231300,-0.026770833879709,-0.064437478780746,0.122608318924904,-0.105726905167103,0.005258023738861,-0.036134146153927,-0.037312272936106,0.055615827441216,-0.028660487383604,-0.159293666481972,-0.087801098823547,-0.029257467016578,0.022957909852266,-0.181033834815025,-0.095193430781364) * MODEL2_texOff(vec2(-1,-1));
res += mat4(-0.028340000659227,-0.084863126277924,0.153387635946274,-0.150671631097794,0.042784452438354,-0.003710622200742,0.246883675456047,0.006911236327142,-0.088432163000107,-0.045314941555262,-0.114354588091373,0.069733619689941,-0.008484144695103,-0.041601534932852,-0.064568035304546,0.115674793720245) * MODEL2_texOff(vec2(-1,0));
res += mat4(-0.012953307479620,-0.091136768460274,-0.019753197208047,-0.151809036731720,0.140690848231316,0.022276250645518,-0.026202112436295,0.056843586266041,-0.114599943161011,0.003342074807733,-0.039255820214748,-0.097277395427227,-0.119019530713558,0.009896952658892,0.000707098166458,-0.097628831863403) * MODEL2_texOff(vec2(-1,1));
res += mat4(-0.230028048157692,-0.141983196139336,0.018462400883436,0.168186664581299,-0.012501630932093,0.048249863088131,-0.200077876448631,0.111036434769630,0.044048476964235,0.002868235809729,0.114156529307365,-0.182513952255249,0.099718362092972,-0.081514835357666,0.047318123281002,-0.168946519494057) * MODEL2_texOff(vec2(0,-1));
res += mat4(-0.167377546429634,-0.054557789117098,-0.331591665744781,-0.097372002899647,0.076258219778538,0.104464814066887,-0.097498580813408,-0.151710823178291,-0.256587892770767,0.008763577789068,0.134543776512146,0.271397322416306,0.193117648363113,-0.385872274637222,-0.336334913969040,0.257626026868820) * MODEL2_texOff(vec2(0,0));
res += mat4(-0.140103101730347,0.049175940454006,0.001090169069357,-0.254596352577209,0.248564362525940,-0.097814917564392,-0.062861531972885,0.300505578517914,-0.029377590864897,0.005668315570801,0.066071659326553,-0.043337062001228,-0.543266832828522,-0.162775993347168,-0.028265316039324,-0.063393816351891) * MODEL2_texOff(vec2(0,1));
res += mat4(-0.033519465476274,0.031019970774651,-0.027254877611995,0.024391796439886,-0.032965824007988,-0.050232999026775,-0.016870271414518,-0.074886932969093,-0.165086403489113,-0.163132652640343,-0.088127903640270,-0.001400626846589,0.022920131683350,0.066347517073154,0.012665040791035,-0.101384952664375) * MODEL2_texOff(vec2(1,-1));
res += mat4(0.019386796280742,-0.030280314385891,0.081251226365566,0.000383977283491,-0.092078052461147,-0.176554501056671,0.094091847538948,0.016620246693492,-0.045811172574759,0.028390098363161,-0.057984370738268,0.018017645925283,0.113431967794895,0.204775914549828,-0.022314542904496,0.026754647493362) * MODEL2_texOff(vec2(1,0));
res += mat4(-0.017079969868064,0.012976130470634,-0.093455575406551,0.010496325790882,0.083387374877930,-0.035967435687780,-0.081757575273514,0.018529113382101,0.101140707731247,-0.008736091665924,-0.076754748821259,-0.172526732087135,0.064371220767498,0.106848597526550,0.035713732242584,0.052353594452143) * MODEL2_texOff(vec2(1,1));
res += mat4(0.160196572542191,-0.052729591727257,0.154633924365044,-0.095176555216312,0.104907929897308,-0.106496721506119,0.210153907537460,-0.143819183111191,0.168752372264862,-0.061095301061869,-0.094520874321461,-0.113150566816330,0.029134387150407,-0.083656556904316,0.121702097356319,0.058011651039124) * MODEL3_texOff(vec2(-1,-1));
res += mat4(-0.332163572311401,0.118296176195145,-0.136640071868896,0.095272995531559,-0.054374378174543,-0.160319209098816,0.200127154588699,0.062790885567665,-0.164455905556679,-0.112051732838154,-0.161049082875252,0.160616829991341,0.105201862752438,0.081807978451252,0.429757058620453,-0.100529156625271) * MODEL3_texOff(vec2(-1,0));
res += mat4(-0.013768683187664,0.212099209427834,-0.346234798431396,-0.116260007023811,0.126743927598000,0.044735636562109,0.099242545664310,-0.027786906808615,0.200167402625084,-0.012362219393253,-0.078179404139519,-0.079638168215752,-0.209867432713509,-0.047007840126753,0.233960285782814,0.048819452524185) * MODEL3_texOff(vec2(-1,1));
res += mat4(0.125811666250229,-0.002822114853188,-0.279562920331955,-0.080335117876530,0.116624422371387,0.180421784520149,-0.241172000765800,-0.139867126941681,-0.051601681858301,-0.234556794166565,-0.129029691219330,0.067660190165043,0.058780871331692,0.122871555387974,-0.022839277982712,-0.164981529116631) * MODEL3_texOff(vec2(0,-1));
res += mat4(-0.081964999437332,-0.195971593260765,0.082105576992035,0.043141379952431,-0.167078956961632,0.205526173114777,-0.142629146575928,-0.020343363285065,0.088348321616650,0.023241996765137,0.246291518211365,-0.149565204977989,-0.075853236019611,0.435991942882538,-0.164111316204071,0.059092819690704) * MODEL3_texOff(vec2(0,0));
res += mat4(-0.188363060355186,-0.269733399152756,0.228556618094444,-0.234029471874237,-0.125517502427101,0.020171288400888,-0.275520503520966,-0.142108917236328,0.089172013103962,-0.041887860745192,0.009314182214439,0.188911378383636,-0.119631566107273,0.000262913759798,-0.123202711343765,-0.029674192890525) * MODEL3_texOff(vec2(0,1));
res += mat4(0.044751044362783,-0.129369825124741,0.201504781842232,0.139467611908913,-0.048379253596067,-0.208105370402336,0.027516698464751,0.049928244203329,-0.086967349052429,0.124402523040771,-0.226016789674759,0.048348054289818,0.020249802619219,-0.059452224522829,-0.081414259970188,-0.111018590629101) * MODEL3_texOff(vec2(1,-1));
res += mat4(0.008580686524510,0.051036514341831,-0.196943014860153,-0.180188834667206,-0.260702937841415,-0.213865041732788,-0.078121915459633,-0.080366201698780,0.101787261664867,0.195095747709274,-0.197942778468132,-0.024139918386936,-0.047105617821217,0.026221146807075,-0.103423163294792,-0.051420189440250) * MODEL3_texOff(vec2(1,0));
res += mat4(-0.223632693290710,0.125661149621010,-0.151793971657753,0.026132728904486,-0.061236731708050,-0.074180208146572,-0.147529616951942,-0.062647759914398,-0.078175544738770,0.095099106431007,0.037085726857185,0.050803191959858,-0.237924486398697,-0.136789277195930,-0.075616247951984,-0.083653897047043) * MODEL3_texOff(vec2(1,1));
res += mat4(0.185699194669724,0.071461811661720,-0.181741163134575,0.091281145811081,0.072603665292263,0.007875040173531,-0.003633298445493,-0.021311014890671,-0.002237059641629,-0.004100075922906,-0.043852087110281,-0.000792588281911,-0.061777137219906,0.063346192240715,0.059350419789553,-0.100464485585690) * MODEL4_texOff(vec2(-1,-1));
res += mat4(-0.046356704086065,0.017632370814681,-0.007531434297562,-0.076707512140274,-0.034174203872681,0.017012262716889,-0.151376783847809,-0.021672410890460,0.020468242466450,-0.087518565356731,0.030575023964047,-0.007654128596187,0.079793147742748,0.041934546083212,-0.116577804088593,0.021199451759458) * MODEL4_texOff(vec2(-1,0));
res += mat4(-0.022952880710363,0.066490687429905,-0.021233988925815,-0.035573732107878,0.037171825766563,-0.014799873344600,-0.045058041810989,0.096220403909683,0.033046018332243,0.002427426865324,0.024185251444578,-0.031125145033002,-0.001463140943088,0.003052690532058,-0.025566358119249,0.103969037532806) * MODEL4_texOff(vec2(-1,1));
res += mat4(0.199507057666779,-0.038689475506544,0.364245504140854,-0.019765008240938,0.070074312388897,-0.284232646226883,-0.261030822992325,0.041869349777699,-0.051730182021856,0.052128244191408,0.113243386149406,0.117842122912407,-0.112222582101822,-0.088879980146885,-0.150065705180168,0.185371279716492) * MODEL4_texOff(vec2(0,-1));
res += mat4(-0.140776202082634,0.108723923563957,-0.057579774409533,0.118612200021744,-0.025971753522754,-0.394426167011261,-0.497587472200394,0.006366948131472,0.015665031969547,-0.241358816623688,0.236732691526413,0.054358858615160,0.342144459486008,-0.003135497216135,0.117575198411942,-0.263850629329681) * MODEL4_texOff(vec2(0,0));
res += mat4(-0.430814564228058,0.132195994257927,0.005597398616374,-0.106217183172703,-0.375092357397079,0.025318846106529,-0.150862425565720,0.024075023829937,0.144967094063759,-0.229771882295609,0.104566149413586,-0.133476272225380,0.320477753877640,0.000354585325113,-0.042305000126362,0.143466860055923) * MODEL4_texOff(vec2(0,1));
res += mat4(0.223358020186424,0.150919124484062,-0.040575321763754,-0.043393541127443,0.013892593793571,-0.036367122083902,0.090633109211922,0.003379958681762,0.116316854953766,0.097130499780178,0.100583925843239,-0.056454222649336,-0.121528021991253,-0.046490747481585,-0.032380610704422,0.068316154181957) * MODEL4_texOff(vec2(1,-1));
res += mat4(-0.087110601365566,-0.200695052742958,-0.112837478518486,-0.032710332423449,-0.057150468230247,-0.327468723058701,0.030311428010464,-0.008999001234770,0.010202358476818,0.034980483353138,-0.034607134759426,-0.021843193098903,0.171359539031982,-0.037882998585701,-0.048151981085539,0.080930545926094) * MODEL4_texOff(vec2(1,0));
res += mat4(-0.164335817098618,-0.065580479800701,-0.161013126373291,-0.080888107419014,0.040611054748297,-0.031542517244816,-0.052372299134731,0.120905824005604,-0.314680129289627,-0.081158697605133,0.022760037332773,0.029915293678641,-0.013709397986531,-0.163185149431229,0.051276233047247,-0.064369477331638) * MODEL4_texOff(vec2(1,1));
res += mat4(-0.018371585756540,-0.044039864093065,0.011062310077250,-0.005843392107636,0.014091434888542,0.000389364140574,0.024758370593190,0.094993367791176,-0.065381400287151,0.028752328827977,0.046762887388468,0.097876720130444,0.040187437087297,0.007676861248910,0.025664905086160,-0.039406221359968) * MODEL5_texOff(vec2(-1,-1));
res += mat4(-0.057729009538889,-0.034492455422878,0.094512075185776,-0.131645292043686,-0.005294858943671,0.132310703396797,0.260490655899048,-0.092481128871441,0.006978891789913,0.038310024887323,0.016167227178812,-0.055710669606924,0.228662505745888,0.006981748156250,0.003517484292388,0.038326229900122) * MODEL5_texOff(vec2(-1,0));
res += mat4(0.062420230358839,-0.027151912450790,0.002665716921911,-0.018672477453947,-0.099782139062881,0.015593890100718,0.087509855628014,-0.020892137661576,-0.014472099952400,-0.001910512917675,0.045493148267269,-0.088468536734581,0.141907438635826,-0.068807780742645,-0.159479662775993,0.177494049072266) * MODEL5_texOff(vec2(-1,1));
res += mat4(0.022209409624338,0.311147123575211,0.126316592097282,-0.088814586400986,0.015309733338654,-0.006846811156720,-0.184225633740425,-0.163330510258675,-0.254265218973160,-0.018823776394129,0.151692956686020,0.287546545267105,0.007130266167223,-0.015571971423924,0.137572303414345,-0.038259692490101) * MODEL5_texOff(vec2(0,-1));
res += mat4(-0.106986664235592,0.580685913562775,0.064753383398056,0.186922997236252,-0.170297041535378,0.189371198415756,0.010520957410336,0.062284767627716,0.029596971347928,-0.044889044016600,-0.048127088695765,-0.124765098094940,0.213203713297844,-0.121101930737495,0.187624841928482,0.117291226983070) * MODEL5_texOff(vec2(0,0));
res += mat4(0.226271152496338,0.257158219814301,-0.137481063604355,0.038390252739191,-0.224829405546188,0.054860673844814,0.090262129902840,-0.061495486646891,0.081849306821823,0.057131469249725,0.053185913711786,-0.138670340180397,0.351627737283707,-0.074397668242455,-0.120635293424129,0.043037012219429) * MODEL5_texOff(vec2(0,1));
res += mat4(0.021740568801761,0.010902839712799,-0.126718223094940,-0.019634811207652,-0.074399240314960,0.048116203397512,0.092287443578243,0.016118153929710,-0.020966507494450,-0.038092061877251,0.027940079569817,0.107857242226601,0.144907012581825,0.150123849511147,-0.098755024373531,-0.101830877363682) * MODEL5_texOff(vec2(1,-1));
res += mat4(0.063009805977345,0.125787958502769,0.035356100648642,0.102702125906944,0.035650443285704,0.504603624343872,-0.064307406544685,-0.042908400297165,-0.030222034081817,0.049362443387508,0.010577809996903,-0.020200176164508,0.097666166722775,0.304758548736572,-0.290142327547073,0.094398401677608) * MODEL5_texOff(vec2(1,0));
res += mat4(0.153697922825813,0.050827793776989,0.038499295711517,0.062757506966591,-0.138173922896385,0.190720587968826,-0.045599617063999,-0.179842352867126,-0.099251039326191,0.023076795041561,0.007523952517658,-0.026269959285855,0.174738228321075,0.128835141658783,-0.119486473500729,0.098993033170700) * MODEL5_texOff(vec2(1,1));
res += mat4(0.121959581971169,0.024740036576986,0.033866144716740,0.024509130045772,0.107460841536522,0.063285030424595,0.108466766774654,0.086377233266830,0.104131862521172,-0.010121931321919,-0.089220039546490,0.177915886044502,0.063421793282032,0.049984447658062,0.063611567020416,0.051990512758493) * MODEL6_texOff(vec2(-1,-1));
res += mat4(-0.113125160336494,-0.076390899717808,0.092360846698284,-0.048323456197977,-0.079257994890213,0.040691107511520,-0.029000286012888,-0.161823064088821,0.027615392580628,0.050887573510408,-0.064086548984051,-0.017603181302547,0.064834602177143,0.121255330741405,-0.265341132879257,0.017168143764138) * MODEL6_texOff(vec2(-1,0));
res += mat4(0.071148537099361,-0.061636839061975,0.088651567697525,0.054627444595098,-0.439165413379669,0.003697550389916,-0.022790350019932,-0.029373714700341,0.120735973119736,0.021700678393245,0.076004877686501,0.052771359682083,0.091094858944416,0.118440456688404,-0.057835958898067,-0.035550821572542) * MODEL6_texOff(vec2(-1,1));
res += mat4(0.188064098358154,0.095446027815342,0.087551154196262,-0.239927873015404,0.209717929363251,-0.023414760828018,-0.035250920802355,-0.110784873366356,0.161116272211075,0.129980713129044,-0.022191181778908,-0.130595922470093,0.033122878521681,-0.110525414347649,0.107878185808659,0.072591654956341) * MODEL6_texOff(vec2(0,-1));
res += mat4(-0.413280159235001,-0.222427338361740,-0.093887664377689,0.350767761468887,-0.308748602867126,-0.067004524171352,0.197946473956108,0.025575624778867,-0.300627976655960,0.219002828001976,0.115823544561863,0.202836275100708,0.012232836335897,-0.654455065727234,0.083799615502357,0.025332072749734) * MODEL6_texOff(vec2(0,0));
res += mat4(-0.062181800603867,-0.086079277098179,-0.054797291755676,-0.094942897558212,-0.108361810445786,-0.148720771074295,0.338504761457443,0.004132320173085,-0.087183848023415,0.137198328971863,0.038729980587959,-0.141044571995735,-0.088521279394627,-0.197175562381744,-0.027424592524767,0.098160140216351) * MODEL6_texOff(vec2(0,1));
res += mat4(0.054209057241678,0.050439130514860,-0.027404827997088,-0.113648824393749,0.137405291199684,-0.005920626688749,0.153142690658569,0.051488328725100,0.071342498064041,-0.134482309222221,0.029398346319795,-0.084478229284286,0.027103032916784,-0.005326707381755,-0.030136037617922,0.042438197880983) * MODEL6_texOff(vec2(1,-1));
res += mat4(-0.090200774371624,0.035728208720684,-0.010923353955150,0.146993413567543,0.002487087622285,0.131216123700142,-0.007279387209564,-0.055215660482645,-0.160900086164474,-0.106670826673508,0.020113015547395,-0.034621268510818,0.017227945849299,-0.027386268600821,-0.031174199655652,-0.042494293302298) * MODEL6_texOff(vec2(1,0));
res += mat4(0.107749603688717,0.013870864175260,0.063887096941471,-0.024072160944343,0.031643189489841,0.207168936729431,-0.025157202035189,-0.008132863789797,-0.132610395550728,0.030356714501977,-0.139151126146317,-0.004906485322863,-0.125153169035912,0.018627349287271,-0.034456472843885,-0.013030815869570) * MODEL6_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(0.015748301520944,0.004308714531362,-0.006956140045077,0.228644907474518) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 3.200 * > OUTPUT.h LUMA.h 3.200 * > *
//!COMPONENTS 4
//!BIND MODEL1
//!BIND MODEL2
//!BIND MODEL3
//!BIND MODEL4
//!BIND MODEL5
//!BIND MODEL6
//!SAVE MODEL11
//!DESC [AiUpscale_Medium_4x_Photo] mapping 4_5

vec4 hook()
{
vec4 res = vec4(-0.025459755212069,-0.176745444536209,-0.253603935241699,-0.011908756569028);
res += mat4(0.070148393511772,0.040251884609461,0.129784852266312,0.067906081676483,-0.068364009261131,0.083580940961838,-0.002043299842626,-0.079152777791023,-0.002526819007471,-0.037627309560776,-0.054371342062950,-0.058687660843134,0.012947985902429,-0.079090788960457,0.004927216097713,0.020866854116321) * MODEL1_texOff(vec2(-1,-1));
res += mat4(0.058445520699024,-0.097765065729618,0.104558698832989,0.194814592599869,0.074263632297516,-0.132982283830643,0.024264942854643,0.080154813826084,-0.182087451219559,0.067024879157543,0.251289159059525,-0.316192299127579,0.002982801524922,-0.096383966505527,0.054085649549961,0.016493970528245) * MODEL1_texOff(vec2(-1,0));
res += mat4(0.100116454064846,-0.068955995142460,0.122730985283852,0.162259548902512,0.000614263000898,0.129230707883835,-0.182008191943169,-0.024143300950527,0.006941684521735,-0.076629824936390,0.064659312367439,0.021069882437587,0.003778737038374,-0.017877299338579,0.052581124007702,0.021092470735312) * MODEL1_texOff(vec2(-1,1));
res += mat4(0.011153816245496,-0.056545082479715,0.059130977839231,0.131649643182755,-0.082461558282375,-0.055541846901178,-0.029604367911816,-0.105657190084457,-0.005445962771773,-0.050876349210739,0.108128860592842,0.050088476389647,-0.054278414696455,-0.106418795883656,-0.140665709972382,-0.085144162178040) * MODEL1_texOff(vec2(0,-1));
res += mat4(0.043653003871441,-0.048283975571394,-0.002357459859923,-0.154187545180321,0.041487306356430,0.247713819146156,0.026776758953929,0.158747389912605,0.193663850426674,-0.278269231319427,0.177409932017326,0.249108716845512,0.046007934957743,0.274368762969971,-0.085005000233650,0.094376467168331) * MODEL1_texOff(vec2(0,0));
res += mat4(-0.047376137226820,-0.256978332996368,-0.073724359273911,0.030776828527451,0.056934714317322,0.186572015285492,-0.024097308516502,0.020532960072160,0.023714946582913,-0.171406716108322,-0.043053280562162,-0.005275250878185,0.002291021170095,-0.251494377851486,0.023788819089532,-0.028966546058655) * MODEL1_texOff(vec2(0,1));
res += mat4(0.001817134441808,-0.050737168639898,-0.015793204307556,0.061962280422449,-0.005078358575702,-0.068615809082985,0.031048564240336,-0.048654627054930,-0.039717249572277,-0.112922489643097,-0.093620710074902,-0.070944093167782,-0.041742105036974,-0.128354981541634,-0.050521325320005,-0.106525443494320) * MODEL1_texOff(vec2(1,-1));
res += mat4(0.068092890083790,-0.086977891623974,0.041303835809231,0.153004884719849,-0.022954072803259,0.149032831192017,-0.038671500980854,-0.034806229174137,-0.154505655169487,0.068769991397858,-0.003269081702456,-0.156274273991585,0.008920736610889,-0.168452799320221,-0.036481119692326,0.050052706152201) * MODEL1_texOff(vec2(1,0));
res += mat4(0.062718905508518,-0.088205479085445,0.044708635658026,0.040361642837524,0.018220048397779,0.060845177620649,0.016491657122970,0.058807451277971,-0.013358513824642,-0.019610106945038,-0.041381269693375,-0.000205014061066,0.024867536500096,0.121026441454887,-0.029484068974853,-0.064686916768551) * MODEL1_texOff(vec2(1,1));
res += mat4(0.010419979691505,-0.139129877090454,-0.087584234774113,0.023253696039319,-0.037433933466673,-0.035599205642939,0.017695784568787,-0.076275840401649,0.040008399635553,-0.030455367639661,-0.073889195919037,0.079380333423615,-0.020139602944255,-0.053190499544144,-0.061746787279844,-0.022668706253171) * MODEL2_texOff(vec2(-1,-1));
res += mat4(-0.092405132949352,0.102244213223457,-0.140807032585144,-0.115102045238018,-0.107334576547146,-0.040902704000473,0.111054107546806,-0.211296603083611,0.103286795318127,-0.027876300737262,-0.017462495714426,0.271325796842575,0.037773597985506,-0.087244838476181,-0.261826753616333,0.087140932679176) * MODEL2_texOff(vec2(-1,0));
res += mat4(0.023055346682668,0.005194354336709,-0.091795600950718,0.026018964126706,-0.002999860560521,-0.047118004411459,-0.084239371120930,0.061086528003216,0.015539148822427,-0.017697742208838,-0.061692491173744,-0.024621145799756,-0.041119426488876,0.000929250556510,-0.203969627618790,0.020266352221370) * MODEL2_texOff(vec2(-1,1));
res += mat4(-0.065209485590458,0.072524629533291,-0.036135457456112,-0.116832584142685,-0.100916132330894,0.002386831678450,-0.116617009043694,-0.185930117964745,0.070664085447788,0.004541426897049,-0.155981525778770,0.133868262171745,0.001757021178491,0.136023461818695,0.104329228401184,0.062386028468609) * MODEL2_texOff(vec2(0,-1));
res += mat4(-0.020375220105052,-0.245247870683670,0.035829868167639,0.138133183121681,0.122716687619686,0.022088509052992,0.065755441784859,0.385765701532364,-0.151252329349518,-0.181710839271545,-0.147694721817970,-0.333019465208054,-0.004100601654500,-0.205980643630028,-0.040064126253128,-0.154413908720016) * MODEL2_texOff(vec2(0,0));
res += mat4(0.044497646391392,0.162036865949631,0.063524432480335,0.034868925809860,-0.072286821901798,-0.124395534396172,0.085067480802536,-0.163364633917809,0.024401135742664,0.029039800167084,-0.074673242866993,0.112801268696785,-0.030650867149234,-0.052908584475517,0.078110344707966,0.012561813928187) * MODEL2_texOff(vec2(0,1));
res += mat4(-0.003513523377478,0.037289034575224,0.010176387615502,-0.002016840036958,0.004529806319624,0.014068833552301,0.035142652690411,-0.047538015991449,-0.028328342363238,-0.027096854522824,-0.045229814946651,-0.034816838800907,0.006756095215678,0.129650846123695,-0.016868242993951,0.008666366338730) * MODEL2_texOff(vec2(1,-1));
res += mat4(-0.071455143392086,0.047609616070986,-0.024686256423593,-0.059567555785179,-0.144693255424500,-0.089126840233803,0.005063266027719,-0.139922946691513,0.120852939784527,-0.097363978624344,0.023253848776221,0.183455988764763,0.022912308573723,0.202067047357559,0.079347528517246,0.054945882409811) * MODEL2_texOff(vec2(1,0));
res += mat4(-0.014723004773259,-0.130519300699234,-0.016725452616811,0.048033647239208,-0.051262088119984,-0.077947981655598,-0.063906773924828,-0.068766720592976,0.043945960700512,-0.030895447358489,0.004350367933512,0.051881629973650,0.005968444515020,0.037780374288559,0.026501609012485,-0.027431165799499) * MODEL2_texOff(vec2(1,1));
res += mat4(0.010366034694016,0.079327590763569,0.040200378745794,-0.025408310815692,-0.020889790728688,-0.146806016564369,0.011614069342613,0.006232303567231,0.018749024719000,-0.036812197417021,-0.131686851382256,0.071131058037281,0.031351193785667,0.007887665182352,0.180805742740631,0.029154952615499) * MODEL3_texOff(vec2(-1,-1));
res += mat4(-0.003781548002735,-0.084787532687187,-0.069425851106644,0.079397186636925,-0.019790200516582,0.044479738920927,0.160743772983551,-0.073031142354012,-0.004649081733078,-0.191399231553078,-0.055094599723816,-0.035699509084225,-0.078676424920559,0.205090716481209,0.342016696929932,-0.275845050811768) * MODEL3_texOff(vec2(-1,0));
res += mat4(0.062629610300064,0.216798543930054,-0.005008167121559,0.122237436473370,-0.017101822420955,0.032606139779091,0.058316905051470,0.018023446202278,0.019705962389708,-0.033735770732164,-0.002708495594561,0.065871693193913,0.022600131109357,-0.008951148018241,0.189369425177574,-0.017928607761860) * MODEL3_texOff(vec2(-1,1));
res += mat4(-0.013005117885768,0.103525280952454,0.064472965896130,0.059971917420626,0.025056550279260,-0.088670447468758,-0.052802309393883,0.013624550774693,-0.005841581616551,-0.344388127326965,-0.020280882716179,-0.052779737859964,0.055216904729605,0.138151526451111,-0.005902624689043,0.062840834259987) * MODEL3_texOff(vec2(0,-1));
res += mat4(-0.001567015424371,-0.060457136482000,-0.033248700201511,-0.022123748436570,0.012516828253865,-0.085506454110146,-0.004157576709986,-0.031391516327858,-0.007880645804107,0.152371600270271,-0.142733201384544,-0.044500559568405,0.040143307298422,-0.034114167094231,-0.284503132104874,0.113845258951187) * MODEL3_texOff(vec2(0,0));
res += mat4(-0.080561056733131,0.006621881853789,-0.049570038914680,-0.025740645825863,-0.029487740248442,-0.088842771947384,-0.172856271266937,-0.026405731216073,0.002619977109134,-0.131294474005699,-0.037849254906178,-0.016447298228741,0.023787861689925,-0.144797071814537,-0.122634418308735,-0.090175442397594) * MODEL3_texOff(vec2(0,1));
res += mat4(-0.045646429061890,-0.120562143623829,-0.034878976643085,-0.032952219247818,0.007914587855339,0.089175812900066,-0.062269210815430,0.020493233576417,0.012910124845803,-0.023831397294998,0.101965889334679,0.015347736887634,0.005223203450441,0.037859734147787,-0.017441220581532,0.022359505295753) * MODEL3_texOff(vec2(1,-1));
res += mat4(-0.011491840705276,0.121183924376965,-0.008841367438436,0.026982510462403,-0.041828922927380,-0.081533417105675,-0.101365156471729,-0.085803657770157,0.080412007868290,-0.068201877176762,0.156549841165543,0.098518036305904,0.021025009453297,0.030412636697292,0.044722110033035,0.043783530592918) * MODEL3_texOff(vec2(1,0));
res += mat4(0.059959083795547,-0.060822363942862,0.068690538406372,-0.001511277281679,-0.013017723336816,-0.101266674697399,-0.066226869821548,-0.034466888755560,0.008543645963073,0.158833637833595,0.076534502208233,-0.017852697521448,0.025612935423851,0.037976894527674,-0.017075208947062,-0.018667068332434) * MODEL3_texOff(vec2(1,1));
res += mat4(0.066082425415516,0.028014991432428,0.015478913672268,0.117170549929142,0.037602920085192,0.032986667007208,-0.025701289996505,0.032249312847853,0.002728925785050,-0.000304006098304,-0.039535470306873,0.121675565838814,-0.061902493238449,0.070470355451107,-0.094122976064682,-0.086688816547394) * MODEL4_texOff(vec2(-1,-1));
res += mat4(0.001516441581771,0.069647550582886,0.042956799268723,-0.025648871436715,0.044684093445539,-0.008227002806962,-0.117159672081470,0.022475849837065,0.103889949619770,-0.055772989988327,-0.149081051349640,0.130845263600349,0.021811693906784,-0.071427144110203,-0.386292785406113,0.093475371599197) * MODEL4_texOff(vec2(-1,0));
res += mat4(-0.005520139820874,0.104148961603642,0.001321218092926,-0.061981238424778,-0.005024538375437,0.074862539768219,-0.058740347623825,0.003763912711293,-0.012657102197409,0.066996805369854,-0.024983972311020,0.033256135880947,0.021009650081396,0.080407865345478,-0.024352543056011,-0.084058724343777) * MODEL4_texOff(vec2(-1,1));
res += mat4(-0.003076107474044,0.156439960002899,0.053933575749397,0.013804070651531,0.040510289371014,-0.028639279305935,0.117720790207386,0.113551288843155,0.060534697026014,-0.141269430518150,-0.041651342064142,-0.030107280239463,-0.065099284052849,0.154014959931374,0.038323219865561,-0.121037155389786) * MODEL4_texOff(vec2(0,-1));
res += mat4(0.058806888759136,-0.288829326629639,-0.117883399128914,0.124891139566898,-0.089443616569042,-0.350708395242691,0.089264206588268,-0.042567551136017,-0.084682159125805,0.129595234990120,-0.195517703890800,0.011271235533059,-0.020821442827582,0.551309645175934,-0.175001874566078,-0.046393603086472) * MODEL4_texOff(vec2(0,0));
res += mat4(-0.046272575855255,0.016113288700581,-0.043701313436031,-0.073284894227982,-0.015355987474322,-0.027102751657367,0.114805534482002,0.050137229263783,0.004786337260157,0.057530425488949,-0.128008633852005,0.089696250855923,0.026124015450478,-0.007527651265264,-0.173560366034508,-0.074813701212406) * MODEL4_texOff(vec2(0,1));
res += mat4(0.062799304723740,-0.079303964972496,0.094637781381607,0.083318270742893,0.004835411440581,0.056919034570456,-0.044280391186476,0.005576331168413,0.012391392141581,0.210941359400749,0.014055374078453,0.041840981692076,-0.021926797926426,0.064808093011379,-0.076692141592503,-0.095254272222519) * MODEL4_texOff(vec2(1,-1));
res += mat4(0.001726139918901,0.095141254365444,0.066517636179924,-0.029975831508636,0.013682887889445,0.038203336298466,-0.039206590503454,-0.091487303376198,0.002521814778447,0.293068289756775,0.003481730585918,-0.383067876100540,0.061212167143822,-0.043701149523258,0.094618365168571,0.108065754175186) * MODEL4_texOff(vec2(1,0));
res += mat4(-0.053931299597025,0.002087703207508,0.080040454864502,-0.005705566145480,-0.032806344330311,0.025397278368473,-0.006274779792875,0.008824989199638,-0.102027133107185,-0.051239006221294,0.077213466167450,0.026652302592993,0.007309515494853,0.120553605258465,0.071314625442028,-0.082955673336983) * MODEL4_texOff(vec2(1,1));
res += mat4(0.082098059356213,0.087355859577656,0.164380267262459,0.017663510516286,0.023984793573618,-0.079424314200878,-0.045045856386423,-0.003288361476734,-0.018040569499135,0.209433913230896,0.038095459342003,-0.001372371683829,0.023059291765094,0.010247554630041,0.042701337486506,0.062691070139408) * MODEL5_texOff(vec2(-1,-1));
res += mat4(-0.115117080509663,0.201981782913208,0.177941828966141,-0.177056014537811,-0.109569884836674,0.077892698347569,-0.115930669009686,-0.230513602495193,-0.073807090520859,0.208433151245117,0.064039446413517,-0.078592836856842,0.085443273186684,0.069375343620777,-0.049350742250681,0.096876189112663) * MODEL5_texOff(vec2(-1,0));
res += mat4(-0.053592361509800,0.172228038311005,0.165182441473007,-0.050279114395380,0.013979945331812,-0.024033278226852,-0.149624794721603,-0.010380784980953,-0.030457638204098,-0.035098452121019,-0.016382969915867,-0.069010019302368,0.021100653335452,-0.089126475155354,-0.103610411286354,0.011473288759589) * MODEL5_texOff(vec2(-1,1));
res += mat4(0.061869654804468,-0.078371137380600,-0.080382257699966,-0.104591973125935,-0.044771566987038,-0.018079381436110,0.100126326084137,0.039254035800695,-0.027397109195590,-0.267120569944382,-0.087304741144180,-0.077729701995850,0.117812179028988,0.117955893278122,0.054807152599096,0.067678175866604) * MODEL5_texOff(vec2(0,-1));
res += mat4(-0.001495850505307,0.103089988231659,-0.124513447284698,-0.430882394313812,0.149865448474884,-0.327542185783386,0.281907588243484,0.186455845832825,-0.089287512004375,-0.199599370360374,0.056782182306051,-0.043683804571629,0.041816931217909,0.109908029437065,0.163338035345078,-0.042985875159502) * MODEL5_texOff(vec2(0,0));
res += mat4(0.003733422840014,-0.100605212152004,-0.076489225029945,-0.111404344439507,0.065026320517063,0.043833836913109,0.100706972181797,0.008729123510420,0.018215622752905,-0.085580050945282,-0.102879062294960,-0.044703416526318,0.110304214060307,0.064168259501457,0.111792296171188,0.135063290596008) * MODEL5_texOff(vec2(0,1));
res += mat4(0.082459382712841,0.050836294889450,-0.044407725334167,-0.019815506413579,-0.058475967496634,-0.109961770474911,0.033958319574594,0.037634715437889,-0.020277695730329,0.011323939077556,-0.034690555185080,-0.080599173903465,0.075411222875118,0.070749074220657,0.084080189466476,0.136791676282883) * MODEL5_texOff(vec2(1,-1));
res += mat4(0.100915908813477,-0.038116153329611,0.059610560536385,0.093878552317619,-0.015123565681279,-0.070809081196785,-0.110737055540085,0.390896886587143,0.001805706880987,-0.091457657516003,0.004303102381527,0.038297180086374,0.064460180699825,0.046091023832560,-0.070823170244694,0.079292550683022) * MODEL5_texOff(vec2(1,0));
res += mat4(0.101009771227837,0.032163020223379,-0.032977286726236,-0.006268864963204,0.010542102158070,0.038447462022305,0.037465393543243,0.025535596534610,-0.014859898947179,0.126858532428741,0.007915575057268,-0.027336334809661,0.001572285545990,-0.083608597517014,-0.085210509598255,0.089759558439255) * MODEL5_texOff(vec2(1,1));
res += mat4(0.101159647107124,0.031942956149578,0.002586364047602,-0.151490598917007,0.011328597553074,0.069214738905430,-0.044964630156755,-0.073112189769745,0.046737100929022,-0.131180092692375,-0.002409169217572,0.122858881950378,0.003879855619743,0.149731427431107,-0.085863776504993,0.033004764467478) * MODEL6_texOff(vec2(-1,-1));
res += mat4(0.172734215855598,0.123508140444756,0.285187363624573,0.043817583471537,-0.077010720968246,-0.124988861382008,-0.190326094627380,-0.048572950065136,-0.026322795078158,-0.177407488226891,0.209865853190422,-0.003202052786946,0.058766484260559,-0.004807054996490,-0.127026230096817,0.160147577524185) * MODEL6_texOff(vec2(-1,0));
res += mat4(-0.008463203907013,-0.133831799030304,0.104169547557831,-0.084437869489193,-0.001353027764708,0.132527694106102,-0.082869969308376,-0.023632695898414,0.002080390229821,-0.092602469027042,0.073400035500526,0.009471572004259,0.048332251608372,0.042953342199326,0.000292827404337,0.067726552486420) * MODEL6_texOff(vec2(-1,1));
res += mat4(0.227922782301903,0.087750010192394,0.031659238040447,-0.054838981479406,0.034255351871252,-0.000727779930457,0.053671061992645,0.098489440977573,0.007072354201227,-0.148929834365845,-0.017187029123306,-0.103206962347031,-0.027100479230285,-0.131496161222458,-0.024783769622445,-0.022077657282352) * MODEL6_texOff(vec2(0,-1));
res += mat4(-0.849563121795654,-0.081636287271976,-0.187246188521385,0.129211515188217,0.033546954393387,0.042731042951345,0.126394286751747,-0.080402992665768,-0.032174859195948,-0.058772753924131,-0.239696621894836,-0.044184025377035,-0.069858014583588,-0.023642892017961,-0.207247242331505,-0.032234467566013) * MODEL6_texOff(vec2(0,0));
res += mat4(0.065241612493992,0.045874953269958,-0.111515760421753,-0.108177527785301,0.017725650221109,0.077580846846104,0.068289041519165,-0.034114789217710,0.052847966551781,0.093852028250694,0.015840521082282,0.009902596473694,-0.038906056433916,-0.002549238270149,-0.004747086670250,-0.012709700502455) * MODEL6_texOff(vec2(0,1));
res += mat4(0.167570099234581,0.138199374079704,0.004698212258518,0.049153719097376,-0.053033106029034,-0.019647210836411,-0.006300785113126,-0.027010167017579,-0.004624778870493,-0.143112778663635,0.053799588233232,-0.039046514779329,0.026419600471854,-0.088137947022915,0.012422680854797,0.026894735172391) * MODEL6_texOff(vec2(1,-1));
res += mat4(0.125082060694695,-0.092193365097046,-0.092682428658009,-0.254136919975281,0.021751048043370,0.115753985941410,-0.035882011055946,0.078308984637260,-0.048787921667099,-0.100136451423168,0.049855247139931,-0.097596600651741,-0.008307836949825,0.069109827280045,0.023870373144746,-0.023774551227689) * MODEL6_texOff(vec2(1,0));
res += mat4(0.048924643546343,-0.082531079649925,-0.050053078681231,-0.019738342612982,0.029711751267314,0.001191511517391,0.006606396753341,0.024624986574054,-0.009347873739898,-0.073955833911896,0.058050747960806,0.033777546137571,0.012428701855242,-0.011054315604270,0.004975115880370,-0.002551529090852) * MODEL6_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(0.905020534992218,0.026122713461518,0.006771222222596,0.955433547496796) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 3.200 * > OUTPUT.h LUMA.h 3.200 * > *
//!COMPONENTS 4
//!BIND MODEL1
//!BIND MODEL2
//!BIND MODEL3
//!BIND MODEL4
//!BIND MODEL5
//!BIND MODEL6
//!SAVE MODEL12
//!DESC [AiUpscale_Medium_4x_Photo] mapping 4_6

vec4 hook()
{
vec4 res = vec4(-0.138624846935272,-0.212720841169357,-0.130393370985985,-0.114032909274101);
res += mat4(0.117534622550011,-0.004751582629979,-0.038081850856543,0.001824153587222,-0.124554142355919,0.038277123123407,-0.049646962434053,-0.123371213674545,-0.057838074862957,0.086202293634415,-0.042797390371561,0.002139131538570,-0.014950852841139,-0.165603533387184,0.079825617372990,-0.001824857085012) * MODEL1_texOff(vec2(-1,-1));
res += mat4(-0.031578104943037,-0.073374368250370,-0.075637102127075,0.071886993944645,0.156711459159851,-0.104717500507832,0.123801372945309,0.064963407814503,-0.069715470075607,0.403958141803741,-0.129155501723289,-0.114539571106434,0.073312878608704,-0.124977618455887,-0.004878619220108,-0.101247832179070) * MODEL1_texOff(vec2(-1,0));
res += mat4(0.010291503742337,-0.036721903830767,0.019469758495688,-0.102840967476368,0.026124389842153,-0.138572588562965,0.032624162733555,0.276385098695755,-0.028552079573274,0.341315835714340,-0.069970011711121,0.030511839315295,-0.077029787003994,0.072974637150764,-0.095808245241642,-0.098964758217335) * MODEL1_texOff(vec2(-1,1));
res += mat4(0.041848957538605,-0.032957017421722,-0.038672912865877,-0.063456252217293,-0.168823897838593,0.088799409568310,0.050576325505972,-0.097026556730270,-0.037879504263401,-0.196271315217018,-0.037967216223478,-0.055244237184525,0.132533922791481,0.097600191831589,0.008789133280516,0.025561861693859) * MODEL1_texOff(vec2(0,-1));
res += mat4(0.059659615159035,0.010413192212582,0.001345508033410,-0.064906544983387,-0.057196967303753,0.020439852029085,-0.100548140704632,0.130260139703751,-0.029774321243167,0.105592086911201,0.020098114386201,-0.049690496176481,0.332713544368744,0.021396338939667,0.051405742764473,-0.149037227034569) * MODEL1_texOff(vec2(0,0));
res += mat4(-0.222455516457558,0.064393684267998,-0.118321396410465,0.082165271043777,0.063010588288307,-0.017464090138674,0.144682690501213,0.001266397652216,0.045974627137184,0.007425504270941,0.005052991677076,0.032800275832415,-0.280134767293930,-0.001253529684618,-0.031637083739042,0.132279902696609) * MODEL1_texOff(vec2(0,1));
res += mat4(0.022349147126079,-0.066344238817692,-0.054902400821447,-0.042101282626390,-0.169950261712074,-0.042193382978439,0.092344328761101,0.103935688734055,0.038457036018372,0.010798512026668,0.021159645169973,-0.030888993293047,0.032001592218876,-0.033356070518494,-0.072140596807003,-0.038521122187376) * MODEL1_texOff(vec2(1,-1));
res += mat4(0.168650940060616,-0.074679717421532,-0.106479898095131,-0.064137332141399,-0.088074326515198,0.001544341328554,-0.047522231936455,0.128257274627686,-0.042438562959433,0.143162220716476,0.088073872029781,0.000637490360532,0.173804536461830,-0.001806756132282,-0.097659960389137,-0.043570954352617) * MODEL1_texOff(vec2(1,0));
res += mat4(-0.139177247881889,-0.083573199808598,-0.101574108004570,0.089089751243591,-0.022064078599215,-0.019621411338449,0.011059059761465,-0.060203976929188,0.028882749378681,0.039508309215307,-0.053816892206669,0.022633424028754,-0.120681963860989,0.057578038424253,0.160185173153877,-0.015120045281947) * MODEL1_texOff(vec2(1,1));
res += mat4(-0.161099925637245,-0.098645620048046,-0.090932168066502,-0.035529121756554,-0.035300005227327,0.058931104838848,0.123800449073315,0.077808119356632,0.085042156279087,-0.130386188626289,0.015330015681684,-0.159771099686623,-0.000849978183396,0.130844578146935,0.019334759563208,-0.019274193793535) * MODEL2_texOff(vec2(-1,-1));
res += mat4(-0.511524498462677,-0.101043254137039,-0.135958284139633,-0.101567246019840,0.078034579753876,0.131307348608971,0.012469707056880,-0.121704898774624,-0.141000390052795,-0.131737083196640,0.077256120741367,-0.076284281909466,-0.075410872697830,-0.218511313199997,-0.010005247779191,-0.014027201570570) * MODEL2_texOff(vec2(-1,0));
res += mat4(0.115751311182976,0.137852102518082,0.084436036646366,-0.230582892894745,0.002716779010370,0.243333771824837,-0.036704417318106,-0.065621562302113,-0.040634259581566,-0.048012901097536,-0.042629141360521,0.034871209412813,-0.034477423876524,-0.150336787104607,-0.005307739134878,-0.024905720725656) * MODEL2_texOff(vec2(-1,1));
res += mat4(-0.173286050558090,0.113123521208763,0.046725720167160,-0.066261999309063,0.063667349517345,0.042056307196617,0.047377239912748,0.018055697903037,-0.065100014209747,-0.058405108749866,-0.115448318421841,-0.002260925248265,0.206901982426643,-0.069572843611240,0.132256463170052,-0.339147955179214) * MODEL2_texOff(vec2(0,-1));
res += mat4(-0.210818842053413,-0.094247750937939,-0.268592149019241,0.050420332700014,0.363911479711533,-0.067973479628563,0.184511616826057,-0.032438129186630,-0.061231106519699,-0.026572439819574,0.462651699781418,0.090815909206867,-0.475399434566498,0.111757375299931,-0.316064238548279,-0.210061788558960) * MODEL2_texOff(vec2(0,0));
res += mat4(0.307496011257172,-0.149844259023666,-0.016842117533088,-0.390902608633041,-0.105532392859459,-0.294372349977493,0.012396586127579,0.126102685928345,0.080637313425541,0.089278139173985,0.057218916714191,-0.100804947316647,-0.027144616469741,0.093247324228287,-0.032439555972815,0.071169063448906) * MODEL2_texOff(vec2(0,1));
res += mat4(0.012840840034187,-0.093551710247993,-0.035668291151524,0.036991506814957,0.149190843105316,-0.024437692016363,-0.056917011737823,0.032590493559837,-0.074718743562698,-0.063842363655567,0.064165271818638,-0.077402554452419,0.207311332225800,0.071049772202969,-0.045064106583595,-0.063563629984856) * MODEL2_texOff(vec2(1,-1));
res += mat4(-0.109993495047092,-0.021521475166082,0.079700551927090,0.057697162032127,0.227279886603355,-0.039357982575893,0.125645563006401,-0.083293788135052,-0.037601694464684,-0.059862494468689,-0.008803403936327,0.005802915431559,0.009900926612318,-0.130081653594971,0.099415823817253,0.004512887913734) * MODEL2_texOff(vec2(1,0));
res += mat4(0.094453424215317,0.009568831883371,-0.075330741703510,-0.056842353194952,-0.083816230297089,0.080028451979160,0.145155742764473,-0.037780020385981,0.041739173233509,-0.029064957052469,0.084767557680607,-0.125464156270027,0.096999883651733,-0.142973467707634,0.107868716120720,-0.020176127552986) * MODEL2_texOff(vec2(1,1));
res += mat4(-0.037501499056816,0.048805989325047,-0.027115065604448,-0.023324441164732,0.292222708463669,0.091309182345867,0.175430700182915,-0.290853440761566,0.160651475191116,-0.239233762025833,-0.090722419321537,-0.280748575925827,0.086129501461983,0.054671414196491,0.093813911080360,0.062332946807146) * MODEL3_texOff(vec2(-1,-1));
res += mat4(-0.287755489349365,-0.239284604787827,-0.062890902161598,0.326572686433792,-0.162244826555252,0.123773120343685,-0.056497998535633,0.178810417652130,-0.317514926195145,-0.273616462945938,-0.018705565482378,0.161422684788704,-0.021575430408120,0.215122774243355,-0.015240481123328,-0.185158804059029) * MODEL3_texOff(vec2(-1,0));
res += mat4(0.088282249867916,-0.401142209768295,-0.047376006841660,-0.237360253930092,0.033822230994701,0.038983430713415,0.105284437537193,-0.251002967357635,0.230549663305283,-0.214918375015259,0.017120728269219,-0.131135314702988,-0.016507122665644,0.088111124932766,-0.049485471099615,0.086901508271694) * MODEL3_texOff(vec2(-1,1));
res += mat4(0.049219787120819,-0.167101472616196,-0.111880317330360,-0.335287898778915,0.052272401750088,-0.231603488326073,-0.184858918190002,-0.037000250071287,-0.037804625928402,0.246031686663628,0.025816768407822,0.016357809305191,0.198788076639175,-0.144095867872238,-0.086333468556404,-0.240999415516853) * MODEL3_texOff(vec2(0,-1));
res += mat4(-0.168248638510704,0.083764992654324,-0.055403579026461,0.111093811690807,-0.306116789579391,-0.322097837924957,-0.032794166356325,0.078079864382744,0.148921474814415,0.337915360927582,-0.096235245466232,-0.090560324490070,-0.099422864615917,-0.025898030027747,-0.145899176597595,-0.013601834885776) * MODEL3_texOff(vec2(0,0));
res += mat4(-0.004569724202156,0.117316149175167,-0.164152041077614,-0.072966687381268,0.224923431873322,-0.260143607854843,-0.054379131644964,-0.235101416707039,-0.027099065482616,0.239449575543404,-0.073170177638531,0.127977490425110,-0.178907632827759,-0.066191725432873,0.048321150243282,0.026054451242089) * MODEL3_texOff(vec2(0,1));
res += mat4(-0.149797096848488,0.034429755061865,-0.180535167455673,-0.049224067479372,-0.152241066098213,0.031915474683046,0.046459991484880,-0.262205839157104,-0.123646602034569,-0.076105363667011,-0.044636871665716,0.169646516442299,0.044462934136391,-0.010950973257422,-0.033910188823938,-0.184901520609856) * MODEL3_texOff(vec2(1,-1));
res += mat4(-0.180638715624809,0.009374625049531,-0.075972609221935,-0.127627074718475,-0.084363251924515,0.083827637135983,-0.088307447731495,0.076660193502903,0.191451311111450,-0.142567932605743,0.013964630663395,-0.058667462319136,-0.087427854537964,-0.066389493644238,0.018346089869738,-0.087899759411812) * MODEL3_texOff(vec2(1,0));
res += mat4(-0.025989970192313,-0.132348522543907,-0.070984877645969,0.159801542758942,0.073150828480721,0.112875558435917,0.001042765914463,-0.175881102681160,-0.060608584433794,-0.096985004842281,0.039071582257748,0.136397927999496,-0.146303996443748,-0.134764224290848,0.005687642376870,-0.048519391566515) * MODEL3_texOff(vec2(1,1));
res += mat4(-0.001479198574089,-0.054256450384855,0.061173364520073,-0.029554413631558,0.099016413092613,-0.115299336612225,-0.108205422759056,-0.003645490156487,-0.064210206270218,0.068839378654957,-0.053797159343958,0.001591810141690,-0.038960173726082,-0.059776723384857,-0.069777466356754,0.018133400008082) * MODEL4_texOff(vec2(-1,-1));
res += mat4(0.044920615851879,-0.056957423686981,0.120976045727730,-0.062848396599293,0.069370962679386,-0.519564509391785,0.157632172107697,0.057012699544430,-0.055128183215857,0.139410212635994,0.042716387659311,-0.040299419313669,0.087060600519180,-0.063351877033710,0.074711628258228,0.084714949131012) * MODEL4_texOff(vec2(-1,0));
res += mat4(0.065051905810833,0.044829152524471,-0.004940865095705,0.153788536787033,-0.107854820787907,-0.245125487446785,-0.056343555450439,0.032952941954136,0.012559026479721,-0.076371960341930,-0.028141807764769,0.092299871146679,-0.207349911332130,-0.167952433228493,-0.112402744591236,0.097981609404087) * MODEL4_texOff(vec2(-1,1));
res += mat4(0.032945428043604,0.247252970933914,0.059152703732252,-0.071302764117718,-0.218907639384270,0.056493788957596,-0.106265895068645,-0.224488019943237,-0.059401188045740,0.010831606574357,0.083703517913818,0.217928737401962,0.038247440010309,0.025134500116110,0.019739618524909,-0.006633058656007) * MODEL4_texOff(vec2(0,-1));
res += mat4(-0.212829813361168,-0.014879249967635,-0.223226681351662,-0.000024228525945,-0.068494871258736,0.028624881058931,-0.638708055019379,0.228622347116470,0.102352879941463,-0.268714398145676,0.052843943238258,0.072357691824436,0.306221514940262,-0.044756017625332,-0.199076354503632,-0.163668692111969) * MODEL4_texOff(vec2(0,0));
res += mat4(-0.081060148775578,-0.089627951383591,0.262668401002884,0.298161685466766,-0.105839699506760,-0.055324811488390,0.135383054614067,-0.067122630774975,0.082762502133846,-0.148829191923141,-0.096837542951107,0.028495024889708,-0.075907073915005,-0.017150571569800,-0.038433503359556,0.101236522197723) * MODEL4_texOff(vec2(0,1));
res += mat4(0.090765841305256,-0.053068064153194,-0.034897930920124,-0.158409759402275,0.041377317160368,0.005400363355875,0.023608636111021,-0.130084276199341,-0.079265795648098,-0.010578704066575,-0.090315394103527,-0.137346133589745,-0.170234248042107,0.072415120899677,-0.060744646936655,0.317903250455856) * MODEL4_texOff(vec2(1,-1));
res += mat4(-0.286704987287521,0.048508338630199,0.025517001748085,-0.268574148416519,0.022281818091869,0.035260025411844,-0.050531558692455,0.019813342019916,-0.150995716452599,0.011919732205570,-0.105872839689255,-0.047820083796978,0.028158176690340,-0.098152153193951,0.003793902695179,-0.053264375776052) * MODEL4_texOff(vec2(1,0));
res += mat4(-0.064824901521206,0.115693472325802,-0.125973656773567,0.284807384014130,-0.063806958496571,0.013536973856390,-0.032182279974222,-0.054899621754885,0.083333954215050,-0.001685954513960,-0.035685535520315,-0.018049260601401,-0.099756456911564,-0.025001792237163,-0.046320378780365,-0.066576264798641) * MODEL4_texOff(vec2(1,1));
res += mat4(0.081631556153297,0.040952600538731,-0.021855073049664,0.175682663917542,0.019369352608919,0.173710912466049,0.001973500242457,0.023130083456635,0.045453254133463,-0.022108735516667,-0.010502859950066,-0.020838031545281,0.117202699184418,0.181932926177979,0.076778307557106,0.140698134899139) * MODEL5_texOff(vec2(-1,-1));
res += mat4(-0.166565164923668,-0.094030655920506,0.023925950750709,-0.048474133014679,-0.093784481287003,0.281226605176926,-0.044018823653460,0.038112435489893,-0.182088240981102,-0.024643896147609,0.026729390025139,-0.169052883982658,0.213838905096054,-0.040000062435865,-0.101027287542820,0.052409134805202) * MODEL5_texOff(vec2(-1,0));
res += mat4(-0.172636374831200,-0.244088500738144,-0.082021147012711,-0.083556458353996,0.099106766283512,0.298698425292969,-0.019064350053668,-0.020342964679003,-0.052108246833086,-0.119834952056408,-0.020022429525852,0.018040468916297,0.049904070794582,0.075652338564396,-0.041640467941761,0.025332393124700) * MODEL5_texOff(vec2(-1,1));
res += mat4(-0.010834547691047,0.085664607584476,-0.003392682410777,0.243180423974991,0.014677393250167,-0.091437943279743,-0.031752035021782,-0.245279163122177,-0.412202507257462,0.045331116765738,0.084775581955910,0.165340140461922,0.071552924811840,0.004711624700576,0.046765130013227,0.135504141449928) * MODEL5_texOff(vec2(0,-1));
res += mat4(-0.098442897200584,0.048111163079739,0.183946564793587,-0.045671872794628,-0.171429336071014,0.034028645604849,-0.069178238511086,-0.020791919901967,-0.326345354318619,-0.188491463661194,0.302255481481552,-0.254977107048035,0.252996355295181,0.073440462350845,0.033378399908543,0.130245193839073) * MODEL5_texOff(vec2(0,0));
res += mat4(0.031740728765726,-0.020955586805940,-0.073583133518696,-0.029474779963493,-0.007991107180715,0.027522830292583,0.076409265398979,-0.058229099959135,0.007655106484890,-0.005411169491708,0.070161536335945,0.077152729034424,-0.122614204883575,0.072469562292099,-0.129780665040016,-0.064857348799706) * MODEL5_texOff(vec2(0,1));
res += mat4(0.104010231792927,0.032898813486099,0.031767681241035,0.072061784565449,-0.135804399847984,-0.061326827853918,0.010776136070490,-0.107801578938961,-0.059211567044258,-0.004076772369444,0.022479394450784,-0.034855380654335,0.184882521629333,0.068143032491207,-0.112416654825211,0.146116524934769) * MODEL5_texOff(vec2(1,-1));
res += mat4(-0.068682253360748,0.056879509240389,-0.022619394585490,0.021077791228890,-0.076636582612991,0.011342165060341,-0.105649352073669,-0.034636493772268,-0.071699373424053,0.110451944172382,-0.147518172860146,-0.003244958119467,0.111491441726685,-0.009979367256165,-0.040553584694862,0.055901970714331) * MODEL5_texOff(vec2(1,0));
res += mat4(0.040830325335264,0.056357704102993,-0.006634961348027,-0.030985862016678,-0.095053106546402,-0.098880022764206,0.060182802379131,-0.042064540088177,-0.069721154868603,0.023645900189877,0.016809586435556,0.058390069752932,0.118036486208439,-0.029359109699726,0.030264403671026,-0.024688087403774) * MODEL5_texOff(vec2(1,1));
res += mat4(0.113075055181980,-0.005755684338510,0.017354108393192,0.111272282898426,0.108132191002369,-0.009864164516330,0.207826554775238,-0.273894608020782,-0.000226490868954,0.092115610837936,-0.011947032064199,0.074675381183624,-0.079249396920204,0.046762261539698,-0.022883836179972,0.029946027323604) * MODEL6_texOff(vec2(-1,-1));
res += mat4(0.053765002638102,-0.072495326399803,-0.096045091748238,0.054538138210773,-0.185313507914543,0.264838039875031,-0.318260073661804,-0.073020480573177,0.178633570671082,0.111257582902908,0.033109903335571,-0.037318505346775,-0.026593172922730,-0.328728675842285,0.009971581399441,0.021171873435378) * MODEL6_texOff(vec2(-1,0));
res += mat4(0.054358828812838,-0.086074039340019,-0.056293834000826,-0.011584484949708,-0.163635104894638,0.062947668135166,-0.004836288280785,0.183420389890671,0.114976353943348,0.155402347445488,0.082675538957119,0.159452006220818,0.167619302868843,-0.239574000239372,0.168676599860191,0.163006961345673) * MODEL6_texOff(vec2(-1,1));
res += mat4(0.039342530071735,-0.065293647348881,-0.052556257694960,-0.006484136916697,0.056359749287367,0.003897810820490,-0.116182990372181,-0.147322475910187,-0.176647782325745,0.025802256539464,-0.122563451528549,0.123951748013496,0.036646213382483,0.024486189708114,0.041542578488588,0.033521853387356) * MODEL6_texOff(vec2(0,-1));
res += mat4(0.089756436645985,0.127142801880836,0.293039560317993,-0.234972193837166,-0.235335186123848,-0.048502594232559,0.253170788288116,-0.014983482658863,0.111239865422249,-0.056569349020720,-0.090044774115086,-0.085559636354446,-0.060402579605579,-0.089451722800732,-0.023623175919056,0.142200335860252) * MODEL6_texOff(vec2(0,0));
res += mat4(-0.018176469951868,0.094831563532352,-0.051561571657658,-0.022386884316802,0.135887771844864,0.158860653638840,0.033766843378544,0.122252114117146,0.032509800046682,0.082301609218121,0.057581663131714,-0.065217770636082,0.090630501508713,-0.128498271107674,-0.269780665636063,0.153661996126175) * MODEL6_texOff(vec2(0,1));
res += mat4(-0.017660269513726,-0.003816293319687,-0.049276929348707,-0.058662973344326,0.109570555388927,0.072837747633457,0.133369237184525,-0.124986022710800,-0.115453384816647,-0.062067098915577,0.029862742871046,0.004626031033695,0.086407542228699,-0.002981480443850,-0.083484269678593,0.036731667816639) * MODEL6_texOff(vec2(1,-1));
res += mat4(0.143659681081772,-0.047671902924776,-0.006434318143874,-0.017510190606117,-0.129030942916870,0.083258591592312,0.110407799482346,0.010016542859375,-0.115744486451149,-0.051758125424385,-0.113616444170475,0.008659255690873,-0.210307940840721,-0.008020722307265,-0.016340872272849,0.092402398586273) * MODEL6_texOff(vec2(1,0));
res += mat4(-0.011306801810861,0.025490036234260,0.123861141502857,0.008438743650913,0.106894567608833,0.056427445262671,0.053542166948318,0.114124968647957,0.083170309662819,-0.059967946261168,-0.141204953193665,0.023374294862151,0.137802690267563,-0.069373331964016,0.038321260362864,0.002269879449159) * MODEL6_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(-0.034318465739489,-0.007167000789195,0.003499357262626,0.010705467313528) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 3.200 * > OUTPUT.h LUMA.h 3.200 * > *
//!COMPONENTS 4
//!BIND MODEL7
//!BIND MODEL8
//!BIND MODEL9
//!BIND MODEL10
//!BIND MODEL11
//!BIND MODEL12
//!SAVE SUBCONV1
//!DESC [AiUpscale_Medium_4x_Photo] sup-pixel convolution 1

vec4 hook()
{
vec4 res = vec4(0.000620500533842,0.000073220122431,-0.000048403959227,0.000481208990095);
res += mat4(0.029814474284649,0.018765641376376,0.009519264101982,0.004935532342643,0.000989247695543,-0.008449370041490,0.003452349919826,0.004405371379107,-0.006960733793676,-0.001203780644573,0.004408727865666,0.003873051377013,0.011043128557503,0.004939214792103,-0.000301083404338,0.000114112459414) * MODEL7_texOff(vec2(-1,-1));
res += mat4(-0.001186848734505,0.007300632074475,0.020325407385826,0.032369177788496,-0.033662710338831,-0.022460306063294,0.018112383782864,0.028680056333542,0.013196590356529,0.012941935099661,-0.009900748729706,-0.014133199118078,-0.001583356643096,-0.028440583497286,-0.026720046997070,0.001093779457733) * MODEL7_texOff(vec2(-1,0));
res += mat4(0.000822484609671,0.001462441752665,-0.000558214145713,-0.003306861501187,0.000360866804840,-0.000856791797560,0.000805787392892,-0.010347555391490,0.015337723307312,0.006977216340601,-0.025936692953110,-0.020563300698996,0.005826851818711,0.007725258823484,0.007644552737474,0.011297818273306) * MODEL7_texOff(vec2(-1,1));
res += mat4(-0.008435495197773,-0.004436417948455,-0.004100758582354,-0.002565099159256,0.005503223277628,0.009591027162969,0.004583848174661,0.002929762704298,-0.010762093588710,0.001489050220698,0.008708329871297,0.005199340637773,0.040916781872511,0.005253933835775,-0.004861576948315,-0.001548163010739) * MODEL7_texOff(vec2(0,-1));
res += mat4(-0.044819951057434,-0.043798785656691,-0.030506651848555,-0.016646891832352,0.055834349244833,-0.006382772233337,-0.068656980991364,-0.040173284709454,0.048426337540150,-0.015554202720523,-0.022560799494386,-0.009376854635775,-0.048307869583368,-0.048909299075603,0.017168259248137,0.065797068178654) * MODEL7_texOff(vec2(0,0));
res += mat4(0.004939208738506,-0.002387161133811,-0.015527181327343,-0.029779728502035,-0.002116338117048,-0.001203776686452,0.009114991873503,0.040147703140974,0.004581383895129,-0.024053873494267,-0.020466277375817,0.047765828669071,0.000268095958745,-0.001900228671730,0.002390863606706,-0.008857456035912) * MODEL7_texOff(vec2(0,1));
res += mat4(0.003618508344516,0.000491783779580,-0.002257720101625,-0.003409654833376,0.003811232745647,0.000543539877981,-0.002912022639066,-0.004135091323406,-0.001388237345964,0.000716072740033,0.001257621333934,0.000022066433303,-0.002169658197090,-0.004559836816043,-0.004754583351314,-0.004516593180597) * MODEL7_texOff(vec2(1,-1));
res += mat4(0.012324475683272,0.010785467922688,0.008919705636799,0.006649305578321,-0.004296910483390,0.000891291245352,0.006377859972417,0.005422720685601,0.001714575570077,0.001545726321638,0.000661549856886,-0.000549430667888,0.001014421693981,0.001435252488591,0.002730804495513,-0.000439087045379) * MODEL7_texOff(vec2(1,0));
res += mat4(0.004175859503448,0.007212187163532,0.010606860741973,0.012116229161620,-0.007285106927156,-0.004646708257496,0.000445496902103,0.001209418638609,-0.003334915498272,0.000156987589435,-0.000564527406823,0.000102545804111,-0.000917521421798,0.000152710548718,0.000585436006077,0.000787433469668) * MODEL7_texOff(vec2(1,1));
res += mat4(-0.002614324446768,0.000335226359311,0.000878586433828,0.000274431513390,0.002133024623618,0.010536485351622,0.005119218491018,0.002508392324671,-0.001249912776984,-0.000011356628420,0.001486083259806,0.001187710673548,-0.023046545684338,-0.007656802888960,0.009755996987224,0.008806572295725) * MODEL8_texOff(vec2(-1,-1));
res += mat4(0.017124973237514,0.003014885587618,-0.006695788819343,-0.006938650738448,0.026381965726614,0.033745445311069,-0.017133165150881,-0.027460535988212,0.003566714003682,-0.000128036233946,-0.002509671496227,-0.001663351198658,-0.012555039487779,-0.001470061950386,0.022363560274243,0.003308139741421) * MODEL8_texOff(vec2(-1,0));
res += mat4(-0.003211028641090,0.001664493815042,0.012813838198781,0.018750339746475,0.001447485527024,0.005967258941382,-0.007601269986480,-0.015353861264884,-0.002479026559740,0.000234492181335,0.000504868046846,0.000301814870909,0.003173102624714,0.001310104969889,0.002064807573333,0.000925741391256) * MODEL8_texOff(vec2(-1,1));
res += mat4(0.016772037371993,0.005945329088718,-0.005228210240602,-0.007257945369929,0.002926757093519,0.009226470254362,-0.000188760343008,0.000751537270844,0.018517483025789,0.011121790856123,0.007317079231143,0.005130465142429,-0.050245966762304,-0.003870381508023,0.022116104140878,0.007690773811191) * MODEL8_texOff(vec2(0,-1));
res += mat4(-0.038886990398169,-0.022679954767227,0.002103090286255,0.019667379558086,-0.002137283328921,0.050049763172865,-0.008303934708238,-0.039124261587858,0.018049443140626,0.024035079404712,0.025956563651562,0.024269035086036,-0.029497537761927,-0.004554407671094,0.050992853939533,-0.001186546985991) * MODEL8_texOff(vec2(0,0));
res += mat4(0.017142841592431,0.016945675015450,-0.002752914559096,-0.029174523428082,0.003926087636501,0.009904616512358,-0.000418986339355,-0.037260610610247,0.002658603712916,0.004269242286682,0.007217476610094,0.010957818478346,0.002088103210554,0.000236529391259,-0.000694591610227,-0.001512264949270) * MODEL8_texOff(vec2(0,1));
res += mat4(0.000518974266015,-0.001402609865181,-0.002577740233392,-0.001304541830905,0.001327422796749,-0.003528300439939,0.000620767881628,0.003104830393568,-0.002608358860016,-0.003697300329804,-0.003714212682098,-0.002147793071344,0.001217311597429,0.000885759538505,-0.002018934814259,-0.000557225605007) * MODEL8_texOff(vec2(1,-1));
res += mat4(0.002801178256050,0.003244341118261,0.003177838400006,0.002021172549576,0.003237787866965,-0.000776531291194,-0.002562584821135,0.004893956240267,-0.002247801516205,0.001823347760364,0.002340242732316,-0.001008170424029,0.002166645368561,0.001014479203150,0.000347327237250,0.001605261582881) * MODEL8_texOff(vec2(1,0));
res += mat4(0.002762871095911,0.002069766167551,0.001096299150959,0.003707611467689,-0.000659649958834,-0.001236845855601,-0.000466082565254,0.000839816697408,-0.001759207458235,-0.002425869693980,-0.003912473097444,-0.003987817093730,0.000049903548643,0.001663506613113,0.001189401256852,-0.000536758569069) * MODEL8_texOff(vec2(1,1));
res += mat4(-0.005603474564850,-0.012564341537654,-0.003205257467926,-0.003743542125449,0.005217431578785,0.003307524137199,0.002119308570400,0.000696799717844,-0.020367290824652,-0.010918401181698,-0.003733803518116,-0.000516487169079,0.024213232100010,0.029670517891645,0.007397210691124,-0.001280767610297) * MODEL9_texOff(vec2(-1,-1));
res += mat4(-0.037758730351925,-0.009280975908041,0.045289907604456,0.038860142230988,-0.029411517083645,-0.002725042169914,0.014840845018625,0.012307958677411,0.024499906226993,0.005866532213986,-0.014827136881649,-0.026245381683111,0.019290039315820,-0.012698893435299,-0.050770647823811,-0.024034542962909) * MODEL9_texOff(vec2(-1,0));
res += mat4(0.007169965188950,0.006029580254108,0.004296313971281,-0.014495431445539,0.005821978207678,0.000375372270355,-0.015957718715072,-0.033635359257460,0.000569117139094,-0.000438691000454,0.008588279597461,0.022206200286746,-0.000624285778031,-0.000737523834687,-0.001487268251367,0.006495750509202) * MODEL9_texOff(vec2(-1,1));
res += mat4(-0.016515841707587,0.008987370878458,0.002261629560962,-0.003692930331454,-0.014448793604970,-0.002612548647448,0.000365429557860,0.000233906248468,-0.003038887865841,-0.009322496131063,-0.003974824212492,0.000915264594369,-0.025068515911698,-0.003508614143357,-0.000042881016270,-0.003732880577445) * MODEL9_texOff(vec2(0,-1));
res += mat4(0.028079207986593,0.035122815519571,-0.006744568701833,-0.041594661772251,0.044593982398510,0.069860316812992,0.028673090040684,-0.012965125031769,0.042439021170139,0.061469718813896,0.039036635309458,0.009700048714876,-0.014996398240328,0.014033491723239,0.024817442521453,-0.015563867054880) * MODEL9_texOff(vec2(0,0));
res += mat4(-0.004737173207104,-0.004534029867500,-0.000822606263682,0.006837884895504,-0.001590044004843,-0.007832088507712,-0.021920925006270,-0.008651813492179,-0.011109974235296,-0.012637212872505,-0.011525218375027,0.004243220668286,0.003151648910716,0.005523625295609,0.004343019798398,-0.010039798915386) * MODEL9_texOff(vec2(0,1));
res += mat4(-0.001179526909254,-0.000367797969375,0.005827740300447,0.005291994195431,-0.003456963924691,-0.003231616457924,-0.002592820441350,-0.001528316759504,-0.001855455222540,0.003502109786496,0.005207025445998,0.004351885523647,0.001710234093480,0.004294322803617,0.004092419054359,0.001698562758975) * MODEL9_texOff(vec2(1,-1));
res += mat4(-0.002256431151181,-0.000782944262028,0.001449722563848,0.001089722383767,-0.002401981502771,-0.005658749490976,-0.005613937973976,-0.001777058001608,-0.008022632449865,-0.010782285593450,-0.008241089060903,-0.005513789132237,0.004767972510308,0.003987282514572,0.001321289921179,0.001204389729537) * MODEL9_texOff(vec2(1,0));
res += mat4(0.000397764611989,-0.000039526956243,-0.002505659125745,-0.004055888392031,0.005059316288680,0.006340082734823,0.003270366229117,0.001099540502764,-0.005258236080408,-0.007174516096711,-0.004286345560104,-0.002078409539536,0.003075796877965,-0.001336881192401,-0.005609053652734,-0.001335698529147) * MODEL9_texOff(vec2(1,1));
res += mat4(0.018556615337729,-0.006938858889043,-0.014411197975278,-0.006521127186716,-0.029481031000614,-0.014956590719521,-0.007386754266918,-0.002508935052902,-0.006373628042638,-0.005388298071921,-0.003258804790676,-0.002758475253358,-0.005831809714437,0.003846098203212,0.005817991681397,0.003956705331802) * MODEL10_texOff(vec2(-1,-1));
res += mat4(-0.009333779104054,-0.011339830234647,-0.000328217778588,0.022552162408829,-0.044659540057182,-0.053202185779810,-0.055808834731579,-0.050521492958069,0.014204733073711,0.010632685385644,0.004609602503479,0.000135135807795,0.010190700180829,0.001279855612665,-0.011935042217374,-0.015849310904741) * MODEL10_texOff(vec2(-1,0));
res += mat4(0.004609026480466,0.006080605089664,0.001026105252095,-0.007011910900474,-0.001900626462884,-0.004699213430285,-0.010945449583232,-0.023038193583488,-0.001611958956346,0.000107251951704,0.004446567501873,0.009538758546114,-0.005412199534476,-0.003971093334258,0.003088110126555,0.010530121624470) * MODEL10_texOff(vec2(-1,1));
res += mat4(0.048144172877073,-0.018415778875351,-0.032701913267374,-0.004141344223171,-0.010480660945177,-0.002853004029021,0.001749539049342,0.003260247875005,-0.025383537635207,-0.011953655630350,-0.003934168256819,-0.000551119213924,-0.022381216287613,0.000096693802334,0.012683168053627,0.008886841125786) * MODEL10_texOff(vec2(0,-1));
res += mat4(-0.013036859221756,-0.026839066296816,-0.016260527074337,0.041433110833168,-0.007445642258972,-0.013534880243242,-0.017586553469300,-0.016628950834274,-0.018492894247174,-0.038730308413506,-0.049593798816204,-0.044964451342821,0.017029656097293,0.015783617272973,-0.002143111545593,-0.026221571490169) * MODEL10_texOff(vec2(0,0));
res += mat4(0.002645089989528,0.005807336419821,0.002587480237707,-0.005621007643640,0.000462091906229,0.001209978596307,0.000239519431489,-0.002976389368996,-0.000715869711712,0.001779157551937,0.005606331396848,0.001324220444076,-0.009054309688509,-0.011996776796877,-0.002889688126743,0.012405692599714) * MODEL10_texOff(vec2(0,1));
res += mat4(0.000454539171187,-0.000439418363385,-0.000622199906502,-0.002976836403832,-0.002577748382464,-0.002093959599733,-0.001006740611047,-0.000078918674262,0.011047150939703,0.008494986221194,0.005458627827466,0.002390804700553,0.001138179446571,-0.000667561311275,-0.000391039502574,-0.000320133956848) * MODEL10_texOff(vec2(1,-1));
res += mat4(-0.003734561149031,0.001706192502752,0.005135331768543,0.004447342362255,0.000010105091860,-0.001404740614817,-0.002329354640096,-0.002619427395985,0.007022721227258,0.010709723457694,0.013175123371184,0.013340683653951,-0.002810447243974,-0.003061960218474,-0.000361142039765,0.001739829778671) * MODEL10_texOff(vec2(1,0));
res += mat4(0.000449029874289,0.000508128025103,-0.000220171961701,-0.001996250590310,-0.000960044446401,-0.000258430663962,-0.000144262929098,0.000029457660276,-0.003200396196917,-0.004212141502649,-0.002475896617398,0.001303105731495,0.002614050172269,0.002664295956492,0.001201868406497,-0.000508211494889) * MODEL10_texOff(vec2(1,1));
res += mat4(-0.014029062353075,-0.014550549909472,-0.011800841428339,-0.007206166628748,-0.007824326865375,-0.000975377450231,-0.001394561259076,0.001973442500457,-0.004953049588948,-0.005255154799670,-0.003315371461213,0.000036141726014,0.001461057458073,0.004017386119813,0.002051054965705,-0.000151121203089) * MODEL11_texOff(vec2(-1,-1));
res += mat4(0.004655195400119,0.004759026691318,-0.001434918725863,-0.009239234961569,0.001698888954706,0.029646124690771,0.009881988167763,-0.017707951366901,-0.001470034825616,0.001794336247258,0.001638833549805,-0.003300498006865,-0.022288167849183,-0.021072393283248,-0.015532610937953,-0.007319515570998) * MODEL11_texOff(vec2(-1,0));
res += mat4(-0.003193786833435,-0.005535895936191,-0.004764453507960,-0.001276628929190,0.004610817413777,0.005590313114226,-0.008188535459340,-0.020565131679177,0.001392296631820,-0.000751760264393,-0.000524953531567,0.000909825263079,0.001858053496107,-0.000208039244171,-0.005471740383655,-0.012772290036082) * MODEL11_texOff(vec2(-1,1));
res += mat4(0.015522733330727,-0.002720204181969,-0.012240346521139,-0.011598731391132,0.045851424336433,-0.003418638836592,-0.019381392747164,-0.008464719168842,0.027253255248070,0.014849696308374,0.006734014023095,0.002708923304453,0.012388656847179,0.006804223172367,0.002350048627704,-0.000670088396873) * MODEL11_texOff(vec2(0,-1));
res += mat4(0.019597223028541,0.038353633135557,0.043207153677940,0.032929509878159,-0.005088945850730,-0.055896770209074,-0.031788259744644,0.041401263326406,0.012065211310983,0.023858824744821,0.034590668976307,0.037580739706755,0.002248340519145,0.008119044825435,0.012826130725443,0.015320751816034) * MODEL11_texOff(vec2(0,0));
res += mat4(-0.001628419966437,-0.004998226650059,-0.005686685442924,0.002286153612658,0.002333371201530,0.006642378866673,0.012555371969938,0.020797125995159,0.002412790898234,0.000915000622626,0.000604090397246,0.003483763197437,0.002259280066937,0.003456105245277,0.001527041429654,0.000786494521890) * MODEL11_texOff(vec2(0,1));
res += mat4(-0.006181599106640,-0.003802517196164,-0.003041783813387,-0.001667325850576,-0.003706407733262,0.003360638627782,0.002951707458124,-0.004924486391246,0.016374180093408,0.008950205519795,0.004252311773598,0.000281143613392,-0.002426573773846,-0.001082674949430,-0.000457934802398,-0.000309356313664) * MODEL11_texOff(vec2(1,-1));
res += mat4(-0.004741372074932,-0.005859613884240,-0.008205555379391,-0.010667273774743,-0.000739360693842,0.003117036074400,0.003312820335850,-0.002313798526302,0.010461599566042,0.013314449228346,0.019067676737905,0.022233592346311,-0.005451007746160,-0.005468746181577,-0.005381278693676,-0.004495329689234) * MODEL11_texOff(vec2(1,0));
res += mat4(0.000292872777209,-0.000841039407533,-0.001476456178352,-0.001901305280626,-0.003364399075508,-0.003227163106203,-0.001851434702985,-0.001991534139961,0.002432277426124,0.002770694904029,0.003880206029862,0.007047256920487,0.000554119003937,0.000129257954541,-0.001347796525806,-0.003216939512640) * MODEL11_texOff(vec2(1,1));
res += mat4(0.008227124810219,-0.004754735622555,-0.008682476356626,-0.008581201545894,0.004416665527970,0.003420229768381,0.001319989212789,0.000272371922620,-0.023455759510398,-0.005925754085183,0.001440159860067,-0.000652729358990,-0.000071915863373,0.004763558506966,0.005186131224036,0.003703672206029) * MODEL12_texOff(vec2(-1,-1));
res += mat4(-0.029728107154369,-0.020884184166789,0.022535216063261,0.030431102961302,0.001379457535222,0.002658276120201,0.003822617465630,0.003938158508390,0.008317784406245,0.029596861451864,0.018311491236091,-0.016140241175890,0.003762628184631,-0.018694015219808,-0.008590218611062,-0.002330738119781) * MODEL12_texOff(vec2(-1,0));
res += mat4(0.002510807709768,0.007799631915987,0.013099323026836,0.002093900460750,0.000066438718932,0.000142964257975,-0.000280392210698,-0.000266782619292,-0.004340217914432,-0.001170022878796,-0.001013763947412,-0.001522300648503,-0.022986797615886,-0.028963850811124,0.019973343238235,0.045034825801849) * MODEL12_texOff(vec2(-1,1));
res += mat4(-0.002224704949185,-0.001580709824339,-0.006086739245802,-0.005047866143286,0.009950492531061,0.002279348205775,-0.002350226975977,-0.004567038733512,0.020229037851095,-0.002753885462880,-0.004690602887422,-0.003773503005505,-0.000595375022385,0.002802613424137,0.005078667774796,0.003954796586186) * MODEL12_texOff(vec2(0,-1));
res += mat4(-0.039241373538971,-0.001724318717606,0.031317725777626,0.011774008162320,0.002328736241907,0.011466911062598,0.015471537597477,0.014261300675571,-0.040023233741522,-0.034629192203283,0.023780211806297,0.050652839243412,0.035864163190126,-0.000976008770522,-0.020723696798086,-0.010584171861410) * MODEL12_texOff(vec2(0,0));
res += mat4(0.004209744744003,0.011457352899015,0.012786095961928,-0.017412448301911,-0.003142996458337,-0.005864983424544,-0.005815880838782,-0.002993108006194,-0.003417694242671,-0.003591707209125,0.004006075672805,-0.005573032889515,-0.005081292707473,-0.017451694235206,-0.018301986157894,0.022729124873877) * MODEL12_texOff(vec2(0,1));
res += mat4(0.002642350504175,-0.002477708272636,-0.002348802983761,-0.001353697618470,0.033350203186274,0.022540783509612,0.010135635733604,0.003494554664940,-0.003992886282504,-0.003247310873121,-0.001267201267183,0.000563521403819,-0.002648030873388,-0.002171708270907,-0.000507787335664,0.000120591263112) * MODEL12_texOff(vec2(1,-1));
res += mat4(-0.000565392256249,-0.000092594586022,0.000408466439694,0.003618471557274,0.011441452428699,0.020807864144444,0.033966675400734,0.039977181702852,-0.002009661402553,-0.000898416445125,-0.003487348556519,-0.004642602987587,-0.005903411656618,0.001536656287499,0.006122017279267,0.001279273186810) * MODEL12_texOff(vec2(1,0));
res += mat4(0.005304570309818,0.003865656908602,-0.003029701532796,-0.004688849207014,0.005507600028068,0.005858860444278,0.006209857296199,0.006948699709028,0.005522154271603,0.007358599919826,0.000171423933352,-0.005743993911892,0.004177385475487,0.002239627297968,0.001608150661923,-0.002700277604163) * MODEL12_texOff(vec2(1,1));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 3.200 * > OUTPUT.h LUMA.h 3.200 * > *
//!COMPONENTS 4
//!BIND MODEL7
//!BIND MODEL8
//!BIND MODEL9
//!BIND MODEL10
//!BIND MODEL11
//!BIND MODEL12
//!SAVE SUBCONV2
//!DESC [AiUpscale_Medium_4x_Photo] sup-pixel convolution 2

vec4 hook()
{
vec4 res = vec4(0.000449846964329,-0.000295276026009,0.000130992688355,0.000910630740691);
res += mat4(0.004329163115472,0.003818507073447,0.003932261839509,0.005825411062688,0.005497446283698,-0.008893025107682,-0.004920310340822,-0.000664989056531,-0.002755065215752,-0.001742762047797,0.000649762281682,0.000439323805040,0.006101656239480,0.000388765416574,-0.000561558292247,-0.000189082769793) * MODEL7_texOff(vec2(-1,-1));
res += mat4(-0.006216112058610,-0.008968676440418,-0.008440154604614,-0.001873227185570,-0.011545200832188,-0.014855484478176,-0.001789956470020,0.015252664685249,0.000466980651254,0.010407468304038,0.000683905498590,-0.004966442007571,-0.016780367121100,-0.012263420037925,0.005566551350057,0.013246593996882) * MODEL7_texOff(vec2(-1,0));
res += mat4(-0.000788380217273,-0.001723467023112,-0.001747345435433,-0.002565258415416,0.004303385503590,0.005779272411019,0.003821082878858,-0.002885656664148,0.009528464637697,0.005711329169571,-0.012726240791380,-0.017660224810243,-0.002104719867930,-0.005201089661568,-0.006276568397880,-0.008860936388373) * MODEL7_texOff(vec2(-1,1));
res += mat4(-0.021173451095819,-0.010447029024363,-0.006402933038771,-0.004455442074686,-0.017206540331244,0.008364870212972,0.010621102526784,0.007237941958010,-0.011277928017080,0.002711316337809,0.011555111035705,0.007303125690669,-0.005634732544422,-0.011701361276209,0.002115890150890,0.005892521236092) * MODEL7_texOff(vec2(0,-1));
res += mat4(-0.011493994854391,-0.026508020237088,-0.033023983240128,-0.029717249795794,0.057220492511988,0.055088382214308,-0.026548245921731,-0.059224072843790,0.059065300971270,-0.011201821267605,-0.022737322375178,-0.008863179944456,-0.025686571374536,0.029629228636622,0.069610759615898,0.038097146898508) * MODEL7_texOff(vec2(0,0));
res += mat4(0.003955485299230,0.005195743404329,0.004071658011526,0.000579200452194,-0.001920397393405,-0.004841202404350,-0.010418713092804,0.006592825986445,0.009878377430141,-0.020569704473019,-0.032473746687174,0.043777525424957,0.002619804115966,0.004477931652218,-0.000963161524851,-0.022856064140797) * MODEL7_texOff(vec2(0,1));
res += mat4(0.005951054394245,0.002677715849131,0.000937311619055,-0.000884638982825,0.003311037551612,-0.001666326425038,-0.004380302038044,-0.004279321990907,-0.001397528219968,0.000990360043943,0.001876910566352,-0.000062939849158,-0.010168013162911,-0.011171595193446,-0.007800749503076,-0.004861127585173) * MODEL7_texOff(vec2(1,-1));
res += mat4(0.014690065756440,0.015154676511884,0.013105949386954,0.009791483171284,-0.001928962185048,0.006608101539314,0.013189258985221,0.009366330690682,0.001964091788977,-0.002660447265953,-0.002575386082754,-0.001585346064530,0.000835066253785,0.005998669657856,0.006658221129328,-0.004622798413038) * MODEL7_texOff(vec2(1,0));
res += mat4(0.003842611797154,0.005648036487401,0.009091988205910,0.013404353521764,-0.008850778453052,-0.011758184991777,-0.004906396381557,0.000847920600791,-0.005869917571545,-0.004018184728920,-0.001393137965351,0.003775212448090,-0.000843028421514,0.001249274821021,0.001408641575836,0.000654589210171) * MODEL7_texOff(vec2(1,1));
res += mat4(-0.003290429711342,0.000657156866509,0.002422711346298,0.002153447130695,-0.004952507093549,0.004523044917732,0.005357639398426,0.003415836021304,0.001459192368202,0.001195152057335,0.001718109473586,0.002098161727190,-0.009944125078619,-0.005607499741018,0.004115721210837,0.005940030794591) * MODEL8_texOff(vec2(-1,-1));
res += mat4(0.010570106096566,0.001100500696339,-0.005703589878976,-0.005960990209132,0.017200164496899,0.014257883653045,-0.006273647304624,-0.013038016855717,0.002389287576079,0.002119759796187,0.001741048297845,0.001278250245377,-0.003062644740567,0.000976161216386,0.007804481312633,0.002859473926947) * MODEL8_texOff(vec2(-1,0));
res += mat4(-0.006039024796337,-0.004284908529371,0.003675180720165,0.010436126030982,-0.000602381012868,-0.001115500344895,-0.006566504016519,-0.001381902140565,-0.000269364565611,0.000860888510942,0.000754434033297,0.000725214777049,0.003310557920486,0.002163146389648,-0.000482908682898,-0.002317569917068) * MODEL8_texOff(vec2(-1,1));
res += mat4(0.011974621564150,0.004806340206414,-0.002617206890136,-0.004393808078021,0.012854217551649,0.011418257839978,-0.002682851394638,-0.000228123157285,-0.016532361507416,-0.007870441302657,-0.001464872271754,0.002287981566042,-0.059815198183060,-0.002313900273293,0.025515977293253,0.008519152179360) * MODEL8_texOff(vec2(0,-1));
res += mat4(-0.030484206974506,-0.024525171145797,-0.004237103741616,0.013018741272390,0.001416501705535,0.066554315388203,-0.022648075595498,-0.050789851695299,-0.033107407391071,-0.039466239511967,-0.039144940674305,-0.032691001892090,-0.034341797232628,-0.012116841040552,0.060881283134222,0.000369219284039) * MODEL8_texOff(vec2(0,0));
res += mat4(0.015821330249310,0.018630759790540,0.002777341287583,-0.021374175325036,0.001591528649442,0.012828228995204,0.002424498321488,-0.048939045518637,0.001081201247871,0.000565333524719,-0.005060689989477,-0.016949642449617,0.001913222600706,-0.000522053393070,0.000696385104675,0.004597133956850) * MODEL8_texOff(vec2(0,1));
res += mat4(0.004761390853673,-0.001009384519421,-0.004707410931587,-0.003217458957806,-0.001348135876469,-0.002068367553875,0.002459581010044,0.003329770639539,-0.011024937964976,-0.004374052863568,-0.002695927163586,-0.001697209547274,-0.002565149450675,-0.002491464838386,-0.002231889404356,0.000115901500976) * MODEL8_texOff(vec2(1,-1));
res += mat4(-0.002330640563741,0.003868308383971,0.008160159923136,0.007596556562930,0.007820144295692,0.003210036316887,-0.000408407911891,0.002437494462356,-0.024306308478117,-0.027146624401212,-0.025558909401298,-0.021755907684565,-0.001463911379687,0.002865672111511,0.004830481018871,0.000944189087022) * MODEL8_texOff(vec2(1,0));
res += mat4(0.004819041118026,0.004116659983993,0.001895726774819,0.001226753229275,0.001287005492486,-0.000286689610220,-0.002723016543314,0.000699231750332,0.001339140348136,0.000261157169007,-0.005292333662510,-0.012622329406440,0.000865731271915,0.002350981347263,0.001700940425508,-0.002202955540270) * MODEL8_texOff(vec2(1,1));
res += mat4(-0.014032484963536,-0.002200695686042,-0.000871299183927,-0.003043174743652,0.003026640042663,-0.002097536576912,-0.005564109422266,-0.005048876628280,-0.000559467938729,-0.003183288499713,-0.003846176899970,-0.005352119449526,-0.018567249178886,0.004324936773628,0.005383761133999,0.003272919449955) * MODEL9_texOff(vec2(-1,-1));
res += mat4(-0.017157353460789,0.005690050777048,0.012873629108071,-0.009060407988727,0.008631737902761,0.016689706593752,0.011712728068233,0.005349947139621,0.013018394820392,0.014133097603917,0.011115745641291,0.003090108977631,0.020453056320548,0.019663911312819,-0.010965397581458,-0.034545265138149) * MODEL9_texOff(vec2(-1,0));
res += mat4(0.003087437245995,0.004266921430826,0.001921824412420,-0.014395028352737,-0.001428215298802,-0.004162788856775,-0.007634544745088,-0.003643768373877,-0.002374890027568,-0.004178091883659,-0.002700014505535,0.004139539320022,-0.002690067049116,-0.005133936181664,-0.004189560189843,0.004878372885287) * MODEL9_texOff(vec2(-1,1));
res += mat4(0.008819886483252,0.010865101590753,-0.008427832275629,-0.007898055016994,-0.007123705931008,-0.000036429835745,-0.000018115810235,0.001894470537081,0.020595051348209,0.001624789088964,-0.005042596720159,-0.002364370273426,-0.019484244287014,-0.019654298201203,-0.007427142001688,-0.006744188722223) * MODEL9_texOff(vec2(0,-1));
res += mat4(0.036965981125832,0.011610438115895,-0.039004683494568,-0.033283501863480,0.072514809668064,0.033910699188709,-0.020967327058315,-0.025272963568568,-0.021315600723028,0.025095546618104,0.052573669701815,0.042644035071135,-0.027142493054271,-0.006196966860443,0.044948782771826,0.028700828552246) * MODEL9_texOff(vec2(0,0));
res += mat4(-0.004581692162901,-0.003439082996920,0.003887791419402,0.017819069325924,-0.008431591093540,-0.016689173877239,-0.004473336506635,0.040054641664028,0.000876939273439,-0.002592379227281,-0.014831533655524,-0.030863413587213,0.003538248827681,0.005962904542685,0.007121149450541,-0.005495714955032) * MODEL9_texOff(vec2(0,1));
res += mat4(-0.000248386786552,0.002097795484588,0.007961687631905,0.006680506747216,-0.004226495511830,-0.001585539663211,0.000610829389188,0.003306796308607,-0.005497719161212,0.001896775560454,0.005791205912828,0.006033027078956,0.000973275396973,0.005089315585792,0.006047458387911,0.002533082384616) * MODEL9_texOff(vec2(1,-1));
res += mat4(-0.001823881641030,-0.000870386487804,0.001416749088094,0.000207962802961,-0.007753340527415,-0.011675973422825,-0.010577726177871,-0.006027338095009,-0.008247599937022,-0.014464315026999,-0.012639750726521,-0.009112750180066,0.005399632267654,0.003762122942135,-0.000701682176441,-0.000215971056605) * MODEL9_texOff(vec2(1,0));
res += mat4(-0.001724536996335,-0.002552569145337,-0.003635832807049,-0.002713851863518,0.007340935058892,0.005752213299274,0.002792694373056,0.000354195886757,0.002077800221741,-0.002945280401036,-0.004823002964258,-0.002596264937893,0.000533799175173,0.001075324835256,-0.004714952316135,-0.004303941968828) * MODEL9_texOff(vec2(1,1));
res += mat4(0.006668992340565,-0.001059378613718,-0.007045161444694,-0.006770103238523,0.001868451712653,-0.001392511650920,-0.003375747473910,-0.002875858685002,-0.005128409713507,-0.002195587847382,0.000231746918871,0.001426090952009,0.000667510088533,0.000694463553373,-0.001543552381918,-0.002317566657439) * MODEL10_texOff(vec2(-1,-1));
res += mat4(-0.006301608402282,-0.005895605310798,0.003370153717697,0.011442785151303,0.008574659936130,0.014816292561591,0.012612460181117,0.005594756919891,-0.000846985960379,-0.004616516176611,-0.005206521600485,-0.005175425205380,0.004239021334797,0.001201131613925,-0.002273638499901,-0.003362072398886) * MODEL10_texOff(vec2(-1,0));
res += mat4(0.003328274236992,0.003574237227440,0.000764718744904,-0.002914088312536,-0.001810471178032,-0.002977515570819,-0.001594423316419,0.002921843668446,0.003179434919730,0.003476310754195,0.003752731252462,0.002758754417300,-0.001791097223759,-0.000896480050869,0.002405043458566,0.005003054160625) * MODEL10_texOff(vec2(-1,1));
res += mat4(0.059466563165188,-0.023145038634539,-0.035856548696756,-0.001330532366410,0.001764554530382,0.003137703984976,0.003095740685239,0.001528612570837,-0.004704643040895,-0.004548624623567,-0.006136690732092,-0.005645545665175,-0.025548027828336,0.006363377440721,0.019386723637581,0.013197997584939) * MODEL10_texOff(vec2(0,-1));
res += mat4(-0.011726752854884,-0.023726057261229,-0.018020795658231,0.048990800976753,0.011495186015964,0.008746137842536,0.005755871068686,0.005615254398435,-0.036832232028246,-0.042859911918640,-0.031856022775173,-0.014087029732764,0.024566670879722,0.018769791349769,-0.009623645804822,-0.038137342780828) * MODEL10_texOff(vec2(0,0));
res += mat4(0.002853828482330,0.007380553986877,0.003538519144058,-0.008168527856469,0.000884273031261,0.002443713601679,0.004722714889795,0.006885154172778,-0.000398878153646,-0.000992557383142,-0.005195211153477,-0.017881490290165,-0.011240899562836,-0.013342152349651,-0.001761054736562,0.017412662506104) * MODEL10_texOff(vec2(0,1));
res += mat4(0.002139898948371,-0.001352289691567,-0.003613315289840,-0.004499660339206,-0.002187253441662,-0.001406108611263,-0.000545931339730,0.000011604908650,0.010946318507195,0.006733504123986,0.004453684203327,0.002795035019517,0.000391400855733,-0.000856475671753,-0.000440515315859,0.000256167666521) * MODEL10_texOff(vec2(1,-1));
res += mat4(-0.005778678227216,-0.003723173867911,0.003541339188814,0.007654311601073,-0.001557917450555,-0.003649010788649,-0.005067089106888,-0.004240229725838,0.008914801292121,0.012606617994606,0.015005048364401,0.014031960628927,-0.003491074312478,-0.003593389177695,-0.001143569475971,0.000614354445133) * MODEL10_texOff(vec2(1,0));
res += mat4(0.000664341496304,0.000598863698542,-0.000337259989465,-0.001927778823301,-0.001613725675270,-0.000424874160672,-0.000367006810848,-0.001063947333023,-0.003089758800343,-0.003004922997206,-0.001534811337478,0.002006773604080,0.002274453407153,0.001971393590793,0.000846049573738,-0.000800147186965) * MODEL10_texOff(vec2(1,1));
res += mat4(-0.014426865614951,-0.012836537323892,-0.009091681800783,-0.005138634238392,-0.006921850610524,0.001177923055366,0.007105556316674,0.007403981871903,-0.001466710236855,-0.000144093442941,0.001629570266232,0.002307638758793,0.007907041348517,0.006187729071826,0.003167979652062,0.000223315029871) * MODEL11_texOff(vec2(-1,-1));
res += mat4(-0.007648273836821,-0.008242236450315,-0.010500104166567,-0.012957928702235,0.015779232606292,0.014801128767431,-0.005516629666090,-0.015101571567357,-0.001468120957725,-0.001741867628880,-0.002398634329438,-0.003141426946968,0.000606208341196,0.004265272058547,0.006823522504419,0.008079096674919) * MODEL11_texOff(vec2(-1,0));
res += mat4(-0.004433494992554,-0.007950841449201,-0.009650273248553,-0.009682932868600,0.003154058009386,0.002548169810325,-0.007433744147420,-0.003267745487392,0.000765595817938,0.000063194100221,-0.000246090814471,0.000073553950642,0.002386375330389,0.002435938455164,0.001358557958156,0.001218068529852) * MODEL11_texOff(vec2(-1,1));
res += mat4(0.013653857633471,-0.003563333535567,-0.011002320796251,-0.009556968696415,0.023590078577399,-0.014831848442554,-0.012915746308863,-0.004568093456328,0.021628152579069,0.009091310203075,0.002226326847449,0.001184554421343,0.008372523821890,0.005888903047889,0.001800803816877,-0.001283294870518) * MODEL11_texOff(vec2(0,-1));
res += mat4(0.027058018371463,0.043921187520027,0.047988690435886,0.035698253661394,-0.048345979303122,-0.059581611305475,0.017214490100741,0.062548384070396,0.024562934413552,0.033286444842815,0.038464281708002,0.036989729851484,-0.016689106822014,-0.011871207505465,-0.004430570639670,0.003405247116461) * MODEL11_texOff(vec2(0,0));
res += mat4(-0.001168564427644,-0.004130776971579,-0.003049171296880,0.007231904193759,0.006015727296472,0.011151738464832,0.018163062632084,0.005725621711463,0.003596943570301,0.004882472101599,0.008829941973090,0.015083181671798,0.001511982060038,0.000728513696231,-0.004339513834566,-0.010765806771815) * MODEL11_texOff(vec2(0,1));
res += mat4(-0.007349309511483,-0.005695699248463,-0.004449085332453,-0.001922782859765,-0.000388819578802,0.006150774192065,-0.002090959344059,-0.008843901567161,0.007282165810466,-0.001237387303263,-0.002458367962390,-0.001547503983602,-0.000959231401794,-0.000468772457680,-0.000770567508880,-0.001297713257372) * MODEL11_texOff(vec2(1,-1));
res += mat4(-0.005924098659307,-0.005362745840102,-0.006485219579190,-0.009751813486218,0.002910164184868,0.008493550121784,0.001889243838377,-0.006781379692256,0.017820462584496,0.024278661236167,0.025687737390399,0.018273178488016,-0.006046281196177,-0.005647421814501,-0.004368451889604,-0.002794812666252) * MODEL11_texOff(vec2(1,0));
res += mat4(0.001111942343414,-0.000830954522826,-0.002099335892126,-0.002977735595778,-0.004033807199448,-0.003161672037095,-0.002235925057903,-0.002035103039816,-0.003025462385267,-0.003993737976998,-0.001000339281745,0.007767578586936,0.000584383262321,0.000552725454327,-0.000511544232722,-0.002775594592094) * MODEL11_texOff(vec2(1,1));
res += mat4(0.009864564985037,-0.000890487048309,-0.006750417407602,-0.006858350243419,-0.000762944400776,-0.000831396842841,-0.001222625840455,-0.001451596268453,-0.002880011452362,0.001956676598638,0.007074410095811,0.003634813707322,0.000977487652563,0.003052514279261,0.003718771506101,0.002997860778123) * MODEL12_texOff(vec2(-1,-1));
res += mat4(-0.019845616072416,-0.014438322745264,0.010728172957897,0.020490311086178,-0.003688800148666,-0.002635484328493,-0.001304892590269,-0.000921533908695,-0.007658408954740,-0.000105900558992,0.009259250946343,0.005826186854392,0.002889040624723,-0.006273543927819,-0.004071422852576,-0.001704208203591) * MODEL12_texOff(vec2(-1,0));
res += mat4(0.001980744767934,0.004478944465518,0.005597116425633,-0.003517283825204,0.000673041795380,-0.000059818758018,-0.001081563299522,-0.001892602536827,-0.000582599197514,-0.000337853620294,-0.000282241817331,-0.003031153464690,-0.018681332468987,-0.013496062718332,0.016580009832978,0.024278208613396) * MODEL12_texOff(vec2(-1,1));
res += mat4(-0.001926201162860,-0.000647414766718,-0.006728120613843,-0.006914560683072,0.008486422710121,0.005457795225084,0.005293380934745,0.003377913264558,0.034467019140720,0.008565684780478,-0.006229691207409,-0.006278410088271,0.000725652382243,0.004563642665744,0.005005782004446,0.003374065272510) * MODEL12_texOff(vec2(0,-1));
res += mat4(-0.049233492463827,-0.012783776968718,0.040234770625830,0.018991215154529,0.005968516692519,0.006786653771996,0.005758722312748,0.007286923006177,-0.003918378613889,-0.049471925944090,-0.034480828791857,0.023666527122259,0.034218534827232,-0.013158803805709,-0.021434076130390,-0.007711705286056) * MODEL12_texOff(vec2(0,0));
res += mat4(0.004450687207282,0.009931649081409,0.017232062295079,-0.008407587185502,-0.002001995919272,-0.000031130024581,0.001526208245195,0.001816749223508,-0.008281834423542,-0.009073096327484,0.007458181120455,0.023024870082736,-0.007120886817575,-0.029149031266570,-0.014431686140597,0.043864436447620) * MODEL12_texOff(vec2(0,1));
res += mat4(0.002877881983295,-0.003734728787094,-0.002830974059179,-0.000810667115729,0.038416970521212,0.030000803992152,0.015151615254581,0.003991455771029,-0.001900259056129,-0.002968007232994,-0.003390505211428,-0.001382926595397,-0.004195665009320,-0.001757145277224,0.000026490632081,0.000988145358860) * MODEL12_texOff(vec2(1,-1));
res += mat4(-0.002979736775160,0.001857355586253,0.002672821516171,0.005759417079389,0.008710576221347,0.018821105360985,0.034529790282249,0.043054319918156,-0.005462079308927,-0.002891215495765,-0.003416680730879,-0.002292226767167,-0.001102785230614,0.004977797623724,0.001545654260553,-0.005502097308636) * MODEL12_texOff(vec2(1,0));
res += mat4(0.005627904087305,0.007576316595078,-0.000823406211566,-0.009140263311565,0.004776179324836,0.005208738613874,0.004325944930315,0.004223889671266,0.005089658778161,0.011142019182444,0.007206763606519,-0.004451299551874,0.004427097737789,0.001443178858608,-0.002083671744913,-0.005758251994848) * MODEL12_texOff(vec2(1,1));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 3.200 * > OUTPUT.h LUMA.h 3.200 * > *
//!COMPONENTS 4
//!BIND MODEL7
//!BIND MODEL8
//!BIND MODEL9
//!BIND MODEL10
//!BIND MODEL11
//!BIND MODEL12
//!SAVE SUBCONV3
//!DESC [AiUpscale_Medium_4x_Photo] sup-pixel convolution 3

vec4 hook()
{
vec4 res = vec4(-0.000328424095642,-0.000822907837573,-0.000294346915325,0.000264262256678);
res += mat4(-0.014741234481335,-0.012416945770383,-0.007728868164122,-0.001985893584788,0.006121854763478,-0.007495344616473,-0.010747126303613,-0.003159520681947,0.000021388548703,-0.000564265938010,-0.000282062275801,-0.001537440111861,0.004021181724966,0.000166394645930,-0.001604582648724,-0.002197382273152) * MODEL7_texOff(vec2(-1,-1));
res += mat4(-0.007350500207394,-0.011739471927285,-0.015763072296977,-0.016787685453892,0.001349592697807,-0.001885511563160,-0.003365331795067,0.005502676125616,-0.001651447266340,0.007475300692022,0.007844777777791,0.002792104613036,-0.005455121863633,0.008527141064405,0.017674725502729,0.013327687978745) * MODEL7_texOff(vec2(-1,0));
res += mat4(0.000558122817893,-0.001219026511535,-0.003065276425332,-0.004079904872924,0.004385921172798,0.007946340367198,0.006308577954769,0.001168048125692,0.004044853616506,0.003020631382242,-0.003519332036376,-0.008309462107718,-0.006446416955441,-0.007877235300839,-0.005918550305068,-0.005274415016174) * MODEL7_texOff(vec2(-1,1));
res += mat4(-0.005838766228408,-0.005754524376243,-0.004313292913139,-0.003994486760348,-0.027295650914311,0.000037320092815,0.011621916666627,0.007503077853471,-0.012115817517042,0.001650418969803,0.010828826576471,0.007064596284181,-0.038173642009497,-0.009816150180995,0.003444546135142,0.001620550756343) * MODEL7_texOff(vec2(0,-1));
res += mat4(0.032231967896223,0.027690039947629,0.014308600686491,0.001784009858966,-0.010429340414703,0.053523629903793,0.041162997484207,-0.020293215289712,0.054350644350052,-0.001478054095060,-0.025213368237019,-0.015792448073626,0.034380000084639,0.052119612693787,0.000257557840087,-0.050336830317974) * MODEL7_texOff(vec2(0,0));
res += mat4(0.001679091481492,0.006128381006420,0.011933786794543,0.023075817152858,-0.000644682440907,-0.001963169546798,-0.013049099594355,-0.032061696052551,0.013414657674730,-0.012106045149267,-0.040406286716461,0.021233575418591,-0.001612108433619,0.000056229026086,-0.006628214847296,-0.003081975039095) * MODEL7_texOff(vec2(0,1));
res += mat4(0.003261355450377,0.001847348175943,0.002490543294698,0.001807634369470,0.007537656463683,-0.001864807447419,-0.003752760356292,-0.002192565472797,-0.002730051288381,0.001567730796523,0.003970438614488,0.001058237859979,-0.009574968367815,-0.001022651442327,0.002112186281011,0.001507006236352) * MODEL7_texOff(vec2(1,-1));
res += mat4(0.004243347328156,0.008491177111864,0.007790941279382,0.005386549979448,-0.009049698710442,-0.008577473461628,0.005789338145405,0.015569519251585,0.007341433782130,-0.008357660844922,-0.006221436895430,-0.001287423772737,0.012875758111477,0.008340483531356,-0.009368957951665,-0.018775923177600) * MODEL7_texOff(vec2(1,0));
res += mat4(-0.002358430298045,-0.003826892701909,-0.004329084418714,-0.000503437069710,0.000340649246937,-0.003881880082190,-0.002003171015531,0.000360421312507,-0.004880281630903,-0.009431218728423,-0.003532987087965,0.012742167338729,0.001032491796650,0.001418220810592,0.000878312392160,0.004634233657271) * MODEL7_texOff(vec2(1,1));
res += mat4(-0.002524774521589,0.000737740541808,0.002041155472398,0.001290037063882,-0.007456354331225,-0.000245014816755,0.004744555801153,0.004137671552598,0.001274236477911,0.000375907635316,-0.000258799467701,-0.000023236132620,-0.003832003101707,-0.003711271798238,0.000045916589443,0.003731591161340) * MODEL8_texOff(vec2(-1,-1));
res += mat4(0.002443552482873,-0.002352285664529,-0.005712505429983,-0.004885761067271,0.004282813053578,0.001089623197913,-0.000468148529762,-0.004044068977237,0.001437166589312,0.003043622011319,0.003771081566811,0.002474496839568,0.002967901062220,0.001356653636321,0.000706077262294,0.001714723883197) * MODEL8_texOff(vec2(-1,0));
res += mat4(-0.006727372296154,-0.006124943494797,-0.001807652297430,0.002925916342065,-0.001257675001398,-0.003841558238491,-0.003113992512226,0.003373958403245,-0.000676856026985,-0.001049189013429,-0.000922715116758,-0.000089881526947,0.003308482468128,0.002650510286912,-0.002491087885574,-0.003357912879437) * MODEL8_texOff(vec2(-1,1));
res += mat4(0.007932154461741,0.003590970300138,-0.000440387957497,-0.001072401064448,0.014754256233573,0.011550459079444,-0.003157204948366,-0.001627037767321,-0.011339690536261,-0.011218982748687,-0.008502088487148,-0.002345485612750,-0.058025091886520,-0.004237446002662,0.023806145414710,0.008853306993842) * MODEL8_texOff(vec2(0,-1));
res += mat4(-0.013297868892550,-0.016390712931752,-0.004311828408390,0.009261857718229,0.017164997756481,0.071531675755978,-0.030895832926035,-0.052160035818815,-0.011654385365546,-0.007244631648064,-0.007928585633636,-0.013383726589382,-0.034116897732019,-0.011538701131940,0.059235714375973,0.000233409213251) * MODEL8_texOff(vec2(0,0));
res += mat4(0.012488794513047,0.017725078389049,0.010378571227193,-0.005105426069349,0.000313182332320,0.013351572677493,-0.000287951086648,-0.047370992600918,0.000650597619824,-0.001721922424622,-0.005077151115984,-0.007893391884863,0.001752748619765,-0.001269480562769,0.001783637795597,0.006963391788304) * MODEL8_texOff(vec2(0,1));
res += mat4(0.009685043245554,0.000904684362467,-0.005722935311496,-0.005458686035126,-0.002031671116129,0.000136155314976,0.002022326225415,0.003652783110738,-0.006174039095640,-0.003435968654230,-0.002961567835882,-0.002536260057241,-0.010632332414389,-0.003160657826811,0.002515736036003,0.002174891065806) * MODEL8_texOff(vec2(1,-1));
res += mat4(-0.014313959516585,-0.003226308850572,0.007700012531132,0.011805296875536,0.006103021092713,0.009984176605940,0.000911743496545,-0.004064323380589,-0.017209623008966,-0.020335948094726,-0.018128143623471,-0.011775137856603,-0.007476724684238,0.001047319965437,0.012672170996666,0.000846179551445) * MODEL8_texOff(vec2(1,0));
res += mat4(0.005650320090353,0.004292505793273,-0.003145861206576,-0.010748183354735,0.002274108584970,0.001000164076686,-0.003016819013283,-0.004227303899825,0.003214771859348,0.002392185851932,-0.002988985273987,-0.009449211880565,0.001227814005688,0.002373827854171,0.002247330266982,-0.002265133429319) * MODEL8_texOff(vec2(1,1));
res += mat4(-0.002691894071177,0.000705046812072,0.000649322057143,0.003042413387448,0.000512956641614,-0.005847690626979,-0.008279806934297,-0.006010744255036,0.008376147598028,0.007286301348358,0.007242021616548,0.001613204600289,-0.016664240509272,-0.005414965562522,-0.002701806137338,-0.004210626240820) * MODEL9_texOff(vec2(-1,-1));
res += mat4(-0.000417080271291,0.002968223299831,-0.009045759215951,-0.012932474724948,0.014388410374522,0.009614641778171,0.001392870326526,-0.000774709274992,0.003121995599940,0.007319387048483,0.009895692579448,0.010523524135351,0.008253591135144,0.017674406990409,0.012991696596146,-0.010971434414387) * MODEL9_texOff(vec2(-1,0));
res += mat4(0.001405725488439,0.005916752852499,0.002367047592998,-0.006748897489160,0.002758084563538,0.004622438456863,0.005285463295877,0.009929720312357,-0.004737425595522,-0.005916620139033,-0.006412683520466,-0.004695031791925,-0.003607922466472,-0.007360776420683,-0.004324197303504,0.003162626875564) * MODEL9_texOff(vec2(-1,1));
res += mat4(0.041415683925152,0.003519331570715,-0.013409728184342,-0.007365536410362,0.004917115904391,0.002437547547743,0.000979205127805,0.002334647579119,0.016653031110764,0.010852210223675,0.001244617975317,-0.002937549026683,0.032040562480688,-0.014631498605013,-0.018904818221927,-0.010799824260175) * MODEL9_texOff(vec2(0,-1));
res += mat4(0.001313580549322,-0.040622916072607,-0.036232240498066,0.026668082922697,-0.003696122439578,-0.046056587249041,-0.038333222270012,-0.005830380599946,-0.058759402483702,-0.054981153458357,-0.015644764527678,0.012879475019872,-0.026017405092716,-0.042643539607525,0.016761783510447,0.070389740169048) * MODEL9_texOff(vec2(0,0));
res += mat4(-0.001826344174333,-0.000104092810943,0.006899781525135,0.014383167959750,-0.003821192774922,0.002812774619088,0.024919003248215,0.031446382403374,0.010017967782915,0.012523497454822,0.008706565015018,-0.018600691109896,0.002163768280298,0.004890764132142,0.006482761818916,0.002105016494170) * MODEL9_texOff(vec2(0,1));
res += mat4(-0.003654719330370,0.002440354553983,0.009088096208870,0.006634163204581,0.002711106557399,0.003056439571083,0.004444752354175,0.005743375513703,-0.008102641440928,-0.000795345462393,0.003900114679709,0.004548704251647,-0.002210308099166,0.004220434464514,0.005165225360543,0.003209729446098) * MODEL9_texOff(vec2(1,-1));
res += mat4(0.000448095437605,0.004134621471167,0.005456831771880,-0.002683546161279,-0.021497465670109,-0.016235403716564,-0.002628648420796,0.002936924807727,0.002167546423152,-0.011485741473734,-0.016275485977530,-0.011863803490996,0.004460098687559,0.006927830167115,-0.003747839713469,-0.007722353097051) * MODEL9_texOff(vec2(1,0));
res += mat4(-0.002752514788881,-0.003077569184825,-0.001842655357905,-0.000891633622814,0.000572618853766,-0.000236347608734,-0.001013095490634,-0.009203028865159,0.007701310329139,0.009512218646705,0.006860064342618,0.006554476451129,-0.001671528676525,0.002117943018675,-0.001908272039145,-0.006923273671418) * MODEL9_texOff(vec2(1,1));
res += mat4(0.003498684382066,0.003473243908957,-0.002381470985711,-0.006566226482391,0.017745906487107,0.009456326253712,0.004403204191476,0.000509772449732,-0.007495813071728,-0.001193810487166,0.003488079877570,0.004523226991296,0.002494907006621,-0.000007765028386,-0.003169893752784,-0.004564503207803) * MODEL10_texOff(vec2(-1,-1));
res += mat4(-0.005131720099598,-0.002910063369200,0.004189424216747,0.006010481622070,0.023564994335175,0.028367495164275,0.028019348159432,0.025101149454713,-0.009695317596197,-0.012706580571830,-0.013348281383514,-0.012690712697804,0.001317461370490,0.001964326482266,0.003043763805181,0.001686330186203) * MODEL10_texOff(vec2(-1,0));
res += mat4(0.002090790541843,0.001877357019112,0.000249444361543,-0.001845837570727,0.000142857214087,0.001668257871643,0.004749969113618,0.012678939849138,-0.000335190445185,-0.001509662717581,-0.001840046257712,-0.004762529395521,-0.000168973303516,-0.000260444387095,0.001228977343999,0.001690401695669) * MODEL10_texOff(vec2(-1,1));
res += mat4(0.052665039896965,-0.025848180055618,-0.034147754311562,-0.000872192962561,0.024887677282095,0.012786401435733,0.004211640451103,0.000523733207956,0.030175380408764,0.014000711962581,0.004482692573220,0.001962183974683,-0.022173549979925,0.008498864248395,0.019577804952860,0.013557926751673) * MODEL10_texOff(vec2(0,-1));
res += mat4(-0.012673003599048,-0.021507602185011,-0.015102714300156,0.047085307538509,0.027645550668240,0.039620298892260,0.045552849769592,0.041682045906782,0.003551586996764,0.023643901571631,0.042866270989180,0.045098558068275,0.026625959202647,0.015299657359719,-0.017276743426919,-0.040672931820154) * MODEL10_texOff(vec2(0,0));
res += mat4(0.002937688492239,0.007966980338097,0.004006181377918,-0.009680975228548,0.002342938212678,0.001874146400951,0.004642704036087,0.012347840704024,0.002786368830130,0.000095438765129,-0.002224367111921,-0.003001115750521,-0.011268449947238,-0.012154649011791,-0.000769817910623,0.018739530816674) * MODEL10_texOff(vec2(0,1));
res += mat4(0.010162733495235,-0.003277697833255,-0.009108085185289,-0.006391302216798,-0.000321276747854,-0.000355883035809,-0.000544466485735,0.000100637276773,-0.002785232849419,-0.003736792132258,-0.001999445259571,-0.001163982087746,-0.003902530064806,-0.001655776984990,0.000853974546771,0.001005706493743) * MODEL10_texOff(vec2(1,-1));
res += mat4(-0.006632070057094,-0.009824719280005,-0.001114461687393,0.013545110821724,-0.003226609667763,-0.003488028654829,-0.002355164615437,-0.001444927765988,0.008438055403531,0.008356129750609,0.006766174919903,0.001247859327123,-0.001543196733110,-0.000614784250502,0.000947773514781,-0.001302320160903) * MODEL10_texOff(vec2(1,0));
res += mat4(0.001522517297417,0.001509375870228,-0.000285765971057,-0.002329415641725,-0.001454482553527,-0.001442114356905,-0.002240604953840,-0.003221222432330,-0.002835575724021,-0.002212678315118,-0.000560287153348,0.004135280847549,0.000585608824622,-0.000033322070522,0.000669268250931,0.001019019866362) * MODEL10_texOff(vec2(1,1));
res += mat4(-0.008408108726144,-0.006850948557258,-0.004939304199070,-0.002966671716422,-0.006204338278621,0.003213687334210,0.010390586219728,0.008427968248725,0.001328057842329,0.002227789722383,0.003743901615962,0.003228001762182,0.010665781795979,0.006430876441300,0.003121199319139,0.001260162447579) * MODEL11_texOff(vec2(-1,-1));
res += mat4(-0.009000063873827,-0.008480444550514,-0.008918997831643,-0.009333619847894,0.015633830800653,0.002559440908954,-0.010191205888987,-0.010896177031100,-0.001266526058316,-0.001874959329143,-0.001284005003981,-0.000078883509559,0.012899572029710,0.016485735774040,0.017053846269846,0.015024049207568) * MODEL11_texOff(vec2(-1,0));
res += mat4(-0.004145857878029,-0.006682128645480,-0.008442902937531,-0.009686754085124,0.004847004543990,0.001963829854503,-0.004981388803571,0.006005581002682,0.001964098308235,0.001654650899582,0.000316208170261,-0.000134917761898,0.001794200972654,0.002611905336380,0.004432325717062,0.008709897287190) * MODEL11_texOff(vec2(-1,1));
res += mat4(0.006765977945179,-0.005805918946862,-0.010947971604764,-0.008379847742617,-0.007222861517221,-0.012036632746458,-0.007651347201318,-0.004814167506993,-0.011184610426426,-0.005559561774135,-0.001768810325302,0.000689752807375,0.003965693525970,0.004717750474811,0.001327502191998,-0.000727700185962) * MODEL11_texOff(vec2(0,-1));
res += mat4(0.025775052607059,0.038008570671082,0.037551824003458,0.024681320413947,-0.061938792467117,-0.013624945655465,0.054052401334047,0.033690698444843,-0.010917913168669,-0.018002081662416,-0.018515849485993,-0.014936942607164,-0.031241402029991,-0.029558669775724,-0.020528836175799,-0.007631017360836) * MODEL11_texOff(vec2(0,0));
res += mat4(-0.001826594234444,-0.003990854136646,-0.002330933231860,0.007802236359566,0.006935675162822,0.014163054525852,0.014261908829212,-0.022563293576241,0.000955011753831,0.002673037350178,0.003017084440216,-0.002276331651956,0.002279786393046,-0.000855611287989,-0.008083757013083,-0.018903471529484) * MODEL11_texOff(vec2(0,1));
res += mat4(-0.002553371479735,-0.006228071637452,-0.006954124663025,-0.004561829846352,0.012100517749786,0.011498466134071,-0.006385662127286,-0.009139602072537,-0.030841955915093,-0.021612644195557,-0.010570353828371,-0.003374288091436,0.004783762618899,0.001753635588102,-0.000682374229655,-0.002125498140231) * MODEL11_texOff(vec2(1,-1));
res += mat4(-0.001256828778423,0.004124453291297,0.005130532197654,0.001049911836162,0.013670339249074,0.006882252637297,-0.012475946918130,-0.010153567418456,-0.011209962889552,-0.018283126875758,-0.027701655402780,-0.036067150533199,0.001325815333985,0.003264297731221,0.005306009203196,0.006306950934231) * MODEL11_texOff(vec2(1,0));
res += mat4(0.000576729013119,-0.002016975311562,-0.005003279075027,-0.004389065317810,-0.001730125746690,-0.001572627807036,-0.000951605674345,0.004019841086119,-0.003681242465973,-0.004253749735653,-0.003413714701310,-0.002292670775205,0.001572320354171,0.002101264661178,0.002184507669881,0.002235313411802) * MODEL11_texOff(vec2(1,1));
res += mat4(0.006967507302761,0.000672471767757,-0.003990351688117,-0.004170017316937,-0.002476096851751,-0.002182719996199,-0.001891094841994,-0.001394187100232,0.000609178794548,0.002388931345195,0.008523595519364,0.007568074855953,0.001181264058687,0.001000905060209,0.001186373876408,0.001912960200571) * MODEL12_texOff(vec2(-1,-1));
res += mat4(-0.014288693666458,-0.009088160470128,0.004953181371093,0.012440967373550,-0.004041109234095,-0.003601105185226,-0.003134157042950,-0.002650384558365,-0.007307026069611,-0.010244554840028,-0.004906681831926,0.003658459987491,0.004745524842292,-0.000003886246304,-0.003050887025893,-0.002314897254109) * MODEL12_texOff(vec2(-1,0));
res += mat4(0.001375735853799,0.003363877069205,0.001591678941622,-0.007276774384081,0.000660874531604,0.000100258723251,-0.000755023444071,-0.001522994250990,0.003001023316756,0.001391212106682,-0.001722994493321,-0.003962449729443,-0.010925392620265,-0.003410064149648,0.008371141739190,0.010612023994327) * MODEL12_texOff(vec2(-1,1));
res += mat4(-0.000980935757980,-0.002466104459018,-0.007736995816231,-0.009121084585786,0.003223966341466,0.004019623622298,0.004987898748368,0.005719057749957,0.008369684219360,0.015574995428324,0.001301516662352,-0.004356001038104,-0.000733309658244,0.004709523636848,0.004582818131894,0.003064340911806) * MODEL12_texOff(vec2(0,-1));
res += mat4(-0.049594622105360,-0.021852457895875,0.040905773639679,0.026359742507339,0.003134089056402,0.000789584533777,-0.000610462215263,-0.000873772136401,0.048883210867643,0.004189009312540,-0.053132280707359,-0.039005089551210,0.024121131747961,-0.023646047338843,-0.019344767555594,-0.005453699268401) * MODEL12_texOff(vec2(0,0));
res += mat4(0.005315620917827,0.010071459226310,0.019075702875853,-0.000210106620216,0.002175035420805,0.004440642427653,0.004352978896350,0.003621226409450,-0.012117088772357,-0.012900290079415,0.000514659681357,0.031599346548319,-0.011059678159654,-0.037462037056684,-0.001043364522047,0.059358965605497) * MODEL12_texOff(vec2(0,1));
res += mat4(0.004066302906722,-0.001996718812734,-0.002796006388962,-0.000829646596685,-0.036532361060381,-0.023049445822835,-0.012572206556797,-0.005866211839020,-0.001056375214830,-0.001630816492252,-0.004331000614911,-0.005132380407304,-0.003015191061422,-0.001146682421677,0.001210284885019,0.002419411903247) * MODEL12_texOff(vec2(1,-1));
res += mat4(-0.009123551659286,0.004824587609619,0.007760078180581,0.006836993154138,-0.016294183209538,-0.030006229877472,-0.039759498089552,-0.042009122669697,-0.005182925611734,0.004905944224447,0.008199416100979,0.003134955186397,0.009044419042766,0.007299741730094,-0.004018932115287,-0.008625780232251) * MODEL12_texOff(vec2(1,0));
res += mat4(0.003824603511021,0.008631983771920,0.001876585418358,-0.014059827663004,-0.003182603046298,-0.001700234948657,-0.002647067420185,-0.007915494032204,0.000059742127632,0.003402712289244,0.006339035462588,-0.001873491681181,0.001630491809919,-0.001523237908259,-0.008064959198236,-0.003259834367782) * MODEL12_texOff(vec2(1,1));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 3.200 * > OUTPUT.h LUMA.h 3.200 * > *
//!COMPONENTS 4
//!BIND MODEL7
//!BIND MODEL8
//!BIND MODEL9
//!BIND MODEL10
//!BIND MODEL11
//!BIND MODEL12
//!SAVE SUBCONV4
//!DESC [AiUpscale_Medium_4x_Photo] sup-pixel convolution 4

vec4 hook()
{
vec4 res = vec4(-0.000185307610082,-0.000489736732561,-0.000465162709588,-0.000129690801259);
res += mat4(-0.014564569108188,-0.012685392983258,-0.009112645871937,-0.005566856823862,0.005727436393499,-0.003608953440562,-0.010549883358181,-0.004184338264167,0.000471156265121,-0.000779033056460,0.000341227685567,-0.000756118213758,0.003344860626385,0.000927744782530,-0.001450226292945,-0.002802324714139) * MODEL7_texOff(vec2(-1,-1));
res += mat4(-0.006418154109269,-0.009477674029768,-0.011981966905296,-0.014070793054998,0.006262840237468,0.003571804380044,-0.000215549924178,0.002969337627292,-0.000535365135875,0.003264349419624,0.008923953399062,0.007172448094934,0.002561428584158,0.011152215301991,0.013978107832372,0.010515952482820) * MODEL7_texOff(vec2(-1,0));
res += mat4(0.001435002079234,0.000739863200579,-0.001235016738065,-0.003771583316848,0.003169624367729,0.005702065303922,0.005242784041911,0.003231671871617,0.000567834184039,0.001921469345689,0.000799518602435,-0.001074431813322,-0.000853842939250,-0.000452749693068,0.000482683652081,0.001474309945479) * MODEL7_texOff(vec2(-1,1));
res += mat4(0.026866698637605,0.011819078586996,0.003180680330843,-0.001329725608230,-0.014343963004649,-0.008933099918067,0.005426963791251,0.003779657185078,-0.010927387513220,0.000653931230772,0.008281351067126,0.005841970909387,-0.010493347421288,0.003564450656995,0.000163448130479,-0.002877269173041) * MODEL7_texOff(vec2(0,-1));
res += mat4(0.022735044360161,0.037190478295088,0.044357769191265,0.042441718280315,-0.052057776600122,0.000431230873801,0.052033908665180,0.025695430114865,0.036877248436213,0.010851331986487,-0.022266402840614,-0.021738590672612,0.033346861600876,-0.008279284462333,-0.060935128480196,-0.051268424838781) * MODEL7_texOff(vec2(0,0));
res += mat4(0.003675152081996,0.005468618590385,0.005099155940115,0.009648703038692,0.000070038848207,-0.000792246195488,-0.003423993475735,-0.028192948549986,0.017016943544149,-0.002615803387016,-0.041630078107119,-0.008120203390718,-0.001871393644251,0.000614512187894,0.002756784437224,0.021994261071086) * MODEL7_texOff(vec2(0,1));
res += mat4(-0.000104037870187,-0.000652627611998,0.000466723577119,0.001981846289709,0.012453623116016,0.003393708262593,-0.000698180578183,-0.000165418838151,-0.005812147632241,0.001691374345683,0.005621539428830,0.002366710687056,0.023964943364263,0.015634430572391,0.003678412875161,0.000023489668820) * MODEL7_texOff(vec2(1,-1));
res += mat4(-0.023896442726254,-0.014474369585514,-0.005935249384493,-0.001678569358774,0.005107570905238,-0.033370830118656,-0.035290375351906,0.000941354839597,0.024633971974254,-0.014364892616868,-0.014931627549231,-0.003977121785283,0.000541342946235,-0.029557123780251,-0.030522372573614,0.006593974307179) * MODEL7_texOff(vec2(1,0));
res += mat4(-0.002152271103114,-0.009273651055992,-0.018253054469824,-0.023408716544509,0.003728712443262,0.004528318531811,0.011384186334908,0.021760087460279,-0.000472256186185,-0.015963869169354,-0.008054496720433,0.031317345798016,0.000284655543510,-0.003117430256680,0.000699060910847,0.008037227205932) * MODEL7_texOff(vec2(1,1));
res += mat4(-0.001232021837495,0.001070191734470,0.002181595889851,0.001235016505234,-0.005124276503921,-0.003214522497728,0.003320464864373,0.004235725849867,-0.000492597639095,-0.000611547729932,-0.001161262975074,-0.001315839705057,-0.001307402504608,-0.001363386632875,-0.002803755691275,0.000777245266363) * MODEL8_texOff(vec2(-1,-1));
res += mat4(0.000439835508587,-0.001413083635271,-0.003602777142078,-0.004003706388175,-0.003311822190881,-0.003128342796117,0.000553302466869,0.000296714599244,0.001244018552825,0.002250795252621,0.002483988180757,0.001451726653613,0.005428566131741,-0.000488734396640,-0.001535622286610,0.001065977849066) * MODEL8_texOff(vec2(-1,0));
res += mat4(-0.005420022644103,-0.005148408934474,-0.002959372242913,-0.000715552654583,-0.000367483677110,-0.002268197946250,0.001404220005497,0.003006745129824,-0.001035161199979,-0.001607741229236,-0.001394281280227,-0.000630782858934,0.002990184118971,0.001793052768335,-0.002895173383877,-0.000597967184149) * MODEL8_texOff(vec2(-1,1));
res += mat4(0.001814954797737,0.001124224392697,-0.000935735355597,-0.000999945332296,0.009028453379869,0.014346212148666,0.002057711360976,0.000157796006533,0.002584146102890,-0.001034466549754,-0.002561329398304,-0.002073641400784,-0.045330502092838,-0.009343139827251,0.018888596445322,0.011046999134123) * MODEL8_texOff(vec2(0,-1));
res += mat4(0.006697697564960,-0.004510983359069,-0.005079595837742,0.001936751184985,0.030799854546785,0.061693981289864,-0.026805400848389,-0.045389801263809,0.012478147633374,0.015475534833968,0.013078149408102,0.007928493432701,-0.027749793604016,-0.003918068017811,0.046192150563002,0.000945407256950) * MODEL8_texOff(vec2(0,0));
res += mat4(0.006952183786780,0.012994017452002,0.017264101654291,0.014328200370073,0.000136157672387,0.009896802715957,-0.008832822553813,-0.035679511725903,-0.001936141983606,-0.000787282828242,0.001075028791092,0.005890503060073,0.001536732073873,-0.000641856226139,0.002923256484792,0.002660127123818) * MODEL8_texOff(vec2(0,1));
res += mat4(0.015147496014833,0.004184886347502,-0.005246936343610,-0.006098194979131,-0.001014573732391,0.001561517827213,-0.001233944320120,0.002089453628287,0.024743305519223,0.007400088012218,-0.000504512165207,-0.000949348032009,-0.026690628379583,-0.001044656964950,0.013614643365145,0.005405044183135) * MODEL8_texOff(vec2(1,-1));
res += mat4(-0.030675532296300,-0.015269070863724,0.003947965800762,0.016387151554227,-0.000276924809441,0.022680237889290,-0.002816198859364,-0.017694471403956,0.037159271538258,0.052491061389446,0.055412784218788,0.046758685261011,-0.017322277650237,-0.002731097629294,0.026890423148870,-0.000474267784739) * MODEL8_texOff(vec2(1,0));
res += mat4(0.010748403146863,0.009007194079459,-0.008015155792236,-0.026229344308376,0.002991133369505,0.005681486800313,0.000671188230626,-0.016862714663148,0.002993927570060,0.002699842676520,0.006644739303738,0.016737446188927,0.001891836058348,0.001476185047068,0.000841314089485,-0.001936433021910) * MODEL8_texOff(vec2(1,1));
res += mat4(-0.004531353712082,-0.004210409708321,0.001415312755853,0.005217662546784,0.000870594929438,-0.003399208653718,-0.004508843179792,-0.003039439208806,0.003972010221332,0.003645058255643,0.006874314509332,0.005824946798384,-0.006645297631621,0.000580436491873,0.003496184479445,-0.002431048313156) * MODEL9_texOff(vec2(-1,-1));
res += mat4(0.011610330082476,0.003605506615713,-0.007553116418421,-0.005404180847108,0.008740200661123,0.003033977933228,-0.001890160376206,-0.001944064744748,0.002314780605957,0.006460920441896,0.005867560859770,0.005398152396083,0.001907075988129,0.007203209679574,0.009813466109335,-0.001863214652985) * MODEL9_texOff(vec2(-1,0));
res += mat4(0.001994443126023,0.005980862304568,0.002459455514327,0.003012032713741,0.003469666000456,0.003470100462437,0.003900601062924,0.007559897843748,-0.005384305026382,-0.005979021545500,-0.006424436811358,-0.005459672305733,-0.002858160994947,-0.006211226806045,-0.003012994071469,0.002669525798410) * MODEL9_texOff(vec2(-1,1));
res += mat4(0.029058348387480,-0.010623264126480,-0.007439642678946,-0.003689303761348,0.008398540318012,0.005188508890569,0.004120080731809,0.002251266734675,-0.012711502611637,0.001633196370676,0.005708781071007,0.003466902067885,0.064468607306480,0.022731183096766,-0.008865167386830,-0.010230112820864) * MODEL9_texOff(vec2(0,-1));
res += mat4(-0.041300244629383,-0.046732340008020,0.021153485402465,0.071038417518139,-0.061247318983078,-0.047189541161060,-0.003133066231385,0.015992090106010,-0.008337459526956,-0.044886279851198,-0.050956990569830,-0.033871117979288,-0.001682783942670,-0.050463791936636,-0.044532936066389,0.037229266017675) * MODEL9_texOff(vec2(0,0));
res += mat4(0.004657451063395,0.005051036365330,0.005811577197164,-0.005850915331393,0.012896861881018,0.019634380936623,0.012392868287861,-0.024309493601322,0.004928851034492,0.009082841686904,0.020901663228869,0.020784877240658,-0.000636794604361,0.001816815580241,0.003078971058130,0.008456599898636) * MODEL9_texOff(vec2(0,1));
res += mat4(-0.014556581154466,0.002662335056812,0.006778000388294,0.000401992787374,-0.002408460015431,0.000156734269694,0.001481247018091,0.001401508809067,-0.010790317319334,-0.005447097588331,0.000443080702098,0.001259833923541,-0.010556164197624,0.002225407632068,0.001885684672743,0.000519280496519) * MODEL9_texOff(vec2(1,-1));
res += mat4(0.007440407760441,0.018072558566928,0.008181447163224,-0.017499558627605,-0.018074292689562,0.015798594802618,0.025601398199797,0.007000127341598,0.032990459352732,0.017489286139607,-0.006532305851579,-0.013637338764966,-0.001670329249464,0.013577611185610,0.002728442428634,-0.017162054777145) * MODEL9_texOff(vec2(1,0));
res += mat4(-0.003403911832720,-0.002310976153240,-0.000623036408797,0.000732745160349,-0.003575009759516,-0.002900823485106,-0.011257206089795,-0.025114944204688,-0.003600287716836,0.002057790057734,0.008686283603311,0.020279034972191,0.000779345922638,0.005458276718855,0.002587341936305,-0.008747863583267) * MODEL9_texOff(vec2(1,1));
res += mat4(0.004393175709993,0.005361930932850,0.000555042061023,-0.004531461745501,0.006086569745094,0.004363981541246,0.004632504191250,0.003486633766443,-0.006935882382095,-0.001000108313747,0.002675375202671,0.003029830986634,0.001686715404503,0.000023129441615,-0.002201042138040,-0.003217236371711) * MODEL10_texOff(vec2(-1,-1));
res += mat4(-0.002012049313635,0.001187454792671,0.003761857748032,0.003598338225856,0.005566233769059,0.003459254745394,0.001696262159385,0.002969296183437,-0.010879064910114,-0.013392973691225,-0.013623909093440,-0.011876792646945,-0.001484883017838,0.000819340406451,0.003701141569763,0.002172599080950) * MODEL10_texOff(vec2(-1,0));
res += mat4(0.001861751079559,0.001487760804594,-0.000302438536892,-0.001877130940557,0.002229931298643,0.003965373151004,0.004595965612680,0.005929895676672,-0.002336335834116,-0.003663160372525,-0.004305037204176,-0.006716272793710,0.000408886262449,0.000301185238641,0.000948819622863,0.000149690706166) * MODEL10_texOff(vec2(-1,1));
res += mat4(0.035980239510536,-0.020656824111938,-0.027726348489523,-0.003250181907788,-0.004940848797560,-0.001747227273881,-0.001337119028904,-0.000380276556825,0.015902336686850,0.006645753048360,0.004180844407529,0.002858818741515,-0.016023851931095,0.006514902692288,0.014441822655499,0.010779513977468) * MODEL10_texOff(vec2(0,-1));
res += mat4(-0.014290659688413,-0.020357541739941,-0.008148272521794,0.037775617092848,-0.023131612688303,-0.021995168179274,-0.017486965283751,-0.012643865309656,0.030814059078693,0.043664228171110,0.044530306011438,0.033373944461346,0.022296905517578,0.008068559691310,-0.019983632490039,-0.033519003540277) * MODEL10_texOff(vec2(0,0));
res += mat4(0.003376692999154,0.007416824344546,0.003026379970834,-0.009520520456135,-0.000378755968995,-0.003035092493519,-0.007471797987819,-0.014259683899581,-0.001705565722659,-0.001684715389274,0.003282326739281,0.013125530444086,-0.009740472771227,-0.009471009485424,0.001059081987478,0.017083156853914) * MODEL10_texOff(vec2(0,1));
res += mat4(0.025897899642587,-0.009600549004972,-0.019395958632231,-0.006386585067958,0.000084457416961,-0.000196426757611,-0.000126240745885,0.001083848415874,-0.016614180058241,-0.009734008461237,-0.002970441244543,0.000649223686196,-0.011546365916729,-0.002753181848675,0.005005907267332,0.003110134974122) * MODEL10_texOff(vec2(1,-1));
res += mat4(-0.010141116566956,-0.018889328464866,-0.009756348095834,0.024535272270441,-0.001426271512173,-0.000542517344002,0.001551379798912,0.001031899359077,0.008756187744439,-0.000132332788780,-0.011822200380266,-0.021837225183845,0.005690036341548,0.007172586396337,0.003789313836023,-0.007365043275058) * MODEL10_texOff(vec2(1,0));
res += mat4(0.002716784831136,0.004115221090615,0.001054061460309,-0.004013956058770,0.000769517326262,0.000350693502696,-0.000765444361605,-0.001428368734196,-0.000014778497643,0.001304133445956,0.006259797140956,0.012523709796369,-0.002949815010652,-0.004855962470174,-0.001186530338600,0.005222936626524) * MODEL10_texOff(vec2(1,1));
res += mat4(-0.003394717583433,-0.002150641055778,-0.001849051332101,-0.001522485516034,-0.002834228333086,0.002998196054250,0.007489459589124,0.005837270058692,0.002757891081274,0.002429153770208,0.003391140839085,0.003423682646826,0.006304842885584,0.003126725321636,0.000600457191467,0.000040403108869) * MODEL11_texOff(vec2(-1,-1));
res += mat4(-0.004226145334542,-0.003153050318360,-0.003460661973804,-0.004586269147694,0.007815185002983,-0.004884847905487,-0.009982413612306,-0.006353147327900,-0.000059272857470,0.000490604958031,0.001094705890864,0.001429938711226,0.008998394943774,0.010927236638963,0.010368415154517,0.008888095617294) * MODEL11_texOff(vec2(-1,0));
res += mat4(-0.002317568054423,-0.003220178419724,-0.004144920501858,-0.005226311739534,0.004625488072634,-0.001265771803446,-0.005295027047396,0.004504076205194,0.001995353959501,0.001409645075910,0.000701533106621,0.000910344766453,0.000080699486716,0.000704545062035,0.002717219525948,0.006453278008848) * MODEL11_texOff(vec2(-1,1));
res += mat4(-0.005447972565889,-0.011214797385037,-0.012943030335009,-0.009239072911441,-0.014600323513150,-0.003547934582457,-0.005592621397227,-0.003311478998512,-0.017090784385800,-0.010464131832123,-0.005364126525819,-0.000871820258908,0.000989025458694,0.003814524039626,0.001036999397911,-0.000484353629872) * MODEL11_texOff(vec2(0,-1));
res += mat4(0.016768572852015,0.022816700860858,0.017376482486725,0.004851318895817,-0.032527957111597,0.030062615871429,0.042610965669155,-0.006450216285884,-0.018121803179383,-0.021015517413616,-0.019332319498062,-0.020305588841438,-0.034642945975065,-0.033911678940058,-0.025122987106442,-0.012219385243952) * MODEL11_texOff(vec2(0,0));
res += mat4(-0.002918379381299,-0.004688882734627,-0.002375087700784,0.005483733024448,0.005680520553142,0.011666865088046,0.000106528008473,-0.034438848495483,0.001189458067529,-0.000577239494305,-0.003169159637764,-0.008859064429998,0.002723665907979,-0.001355095650069,-0.009263955056667,-0.020717119798064) * MODEL11_texOff(vec2(0,1));
res += mat4(0.007895697839558,-0.003578765084967,-0.008754761889577,-0.007595587521791,0.034517858177423,0.010379236191511,-0.014449146576226,-0.009986632503569,-0.018471080809832,-0.007844670675695,-0.000796701293439,0.000260632135905,0.011183971539140,0.004914788529277,0.000311170617351,-0.001775227952749) * MODEL11_texOff(vec2(1,-1));
res += mat4(0.008687508292496,0.022031590342522,0.025655614212155,0.019016494974494,0.015659427270293,-0.018724620342255,-0.034860152751207,0.004123094957322,-0.029139805585146,-0.038247775286436,-0.039807029068470,-0.033085104078054,0.009782209061086,0.014026740565896,0.016299303621054,0.015929015353322) * MODEL11_texOff(vec2(1,0));
res += mat4(-0.001301400014199,-0.004494298715144,-0.007618542294949,-0.003494463395327,-0.000171854524524,0.001943298964761,0.005759372375906,0.015126809477806,-0.000668985070661,-0.001503533101641,-0.004837827757001,-0.012409141287208,0.002132404362783,0.003505148226395,0.004456722643226,0.006728292442858) * MODEL11_texOff(vec2(1,1));
res += mat4(0.003573467489332,0.000447810860351,-0.002281003864482,-0.002649103524163,-0.002443197881803,-0.002507740398869,-0.002866235794500,-0.002404159400612,-0.001693017664365,-0.002430514199659,0.001307780155912,0.004200499039143,0.000107471751107,0.000316258287057,-0.000313001190079,0.000379090924980) * MODEL12_texOff(vec2(-1,-1));
res += mat4(-0.006975698750466,-0.004655322991312,0.002597562037408,0.007262410130352,-0.003333791857585,-0.003000990254804,-0.002744153840467,-0.002291402546689,-0.005645956378430,-0.007576020434499,-0.005235125776380,0.000712420674972,0.005813355557621,0.002443959703669,-0.001801272388548,-0.002975462703034) * MODEL12_texOff(vec2(-1,0));
res += mat4(0.001113366568461,0.002793717198074,-0.000186104851309,-0.005123597569764,0.000333850563038,-0.000152333726874,-0.000861212727614,-0.001070952857845,0.003866201965138,0.003011984517798,-0.001213132636622,-0.004237686749548,-0.004969005472958,0.000254183309153,0.003376119071618,0.006157598458230) * MODEL12_texOff(vec2(-1,1));
res += mat4(0.003304607933387,-0.005662544164807,-0.008596840314567,-0.009398734197021,0.007757435552776,0.007996937260032,0.005769477225840,0.005075555760413,-0.029392832890153,0.001440146123059,0.004910206887871,0.000288554379949,-0.000582919456065,0.004728403408080,0.004595386795700,0.003629269311205) * MODEL12_texOff(vec2(0,-1));
res += mat4(-0.044671468436718,-0.025317251682281,0.035357490181923,0.032785832881927,0.003235201584175,0.003341879229993,0.004661284852773,0.004138218238950,0.044713247567415,0.048913277685642,-0.010386723093688,-0.054517239332199,0.012347657233477,-0.027583306655288,-0.016176205128431,-0.003735640086234) * MODEL12_texOff(vec2(0,0));
res += mat4(0.005317729432136,0.011024043895304,0.018858423456550,0.001931316684932,0.002887271577492,0.003490732749924,0.002879243111238,0.003658731700853,-0.009891971945763,-0.008112126961350,-0.005012392066419,0.010370822623372,-0.020015364512801,-0.040075931698084,0.012955881655216,0.060812722891569) * MODEL12_texOff(vec2(0,1));
res += mat4(0.002523375209421,0.000187134544831,-0.003107746131718,-0.002256932668388,-0.040876623243093,-0.033100970089436,-0.022513085976243,-0.011297991499305,0.003152688965201,-0.001213519717567,-0.001318196533248,-0.003966802731156,-0.002085261745378,-0.000110259708890,0.003015896538273,0.003068722784519) * MODEL12_texOff(vec2(1,-1));
res += mat4(-0.019521111622453,0.005961329676211,0.015849273651838,0.006220718845725,-0.015593589283526,-0.023309601470828,-0.033378254622221,-0.041666816920042,-0.020287020131946,0.003873119130731,0.030972292646766,0.023168452084064,0.021085076034069,0.006344864144921,-0.009925570338964,-0.009425488300622) * MODEL12_texOff(vec2(1,0));
res += mat4(0.003969009499997,0.009959220886230,0.005084369797260,-0.017700629308820,-0.004134089685977,-0.005705233197659,-0.007134678773582,-0.009125079028308,-0.003623529104516,-0.004800833296031,-0.000476902001537,-0.010069636628032,-0.000341265840689,-0.005977358669043,-0.013747526332736,0.004892539232969) * MODEL12_texOff(vec2(1,1));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 3.200 * > OUTPUT.h LUMA.h 3.200 * > *
//!WIDTH LUMA.w 4 *
//!HEIGHT LUMA.h 4 *
//!BIND SUBCONV1
//!BIND SUBCONV2
//!BIND SUBCONV3
//!BIND SUBCONV4
//!BIND LANCZOS3
//!DESC [AiUpscale_Medium_4x_Photo] depth to space

vec4 hook()
{
vec2 fcoord = fract(SUBCONV1_pos * SUBCONV1_size);
vec2 base = SUBCONV1_pos + (vec2(0.5) - fcoord) * SUBCONV1_pt;
ivec2 index = ivec2(fcoord * vec2(4));
mat4 res = mat4(SUBCONV1_tex(base),SUBCONV2_tex(base),SUBCONV3_tex(base),SUBCONV4_tex(base));
return vec4(res[index.x][index.y] + float(LANCZOS3_texOff(0)), 0, 0, 1);
}
